Skip to main content
August 8, 2022
Question

sign_and_send_pubkey: signing failed for ED25519 "MyKey" from agent: agent refused operation

  • August 8, 2022
  • 29 replies
  • 6045 views

I created an ED25519 key to connect with GitHub. It worked once, but every time since I get the following error message:
```
sign_and_send_pubkey: signing failed for ED25519 "MyKey" from agent: agent refused operation
mailto:git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

```

I've rebooted my machine and also deleted/recreated keys, but nothing's worked yet.


1Password Version: 8.8.0
Extension Version: 2.3.7
OS Version: macOs 12.5
Browser:_ Brave
Referrer: forum-search:https://1password.community/search?Search=%22signing%20failed%20for%22%20%22agent%20refused%20operation%22

29 replies

April 10, 2023

Same issue, on a fresh install of Ubuntu 22.04. All configured per instructions, to the best of my knowledge.

April 15, 2023

I was able to solve this issue by completely quitting 1Password (i.e. close it from the menubar not just the app itself) and restarting the macOS ssh agent process. Once I did that the issue went away. I suspect that restarting the macOS ssh agent would have been enough, but I neglected to try only that.

April 29, 2023

Confirming kiener's solution above works. You cannot just restart the ssh agent - quitting 1password, restarting the agent, and then restarting 1password does work.

MatiasLGonzalez
May 11, 2023

I also had to reboot my Windows 11 machine after enabling the 1password agent to stop getting the agent refused error, thanks @kiener

May 26, 2023

@luxus @joe232 @kiener @scottymcraig @MatiasLGonzalez Glad to see a workaround was found here, however we'd love to know if this behaviour still happen on the latest version of the Production or Beta release channels?

If so, please provide your logs using the instructions https://1password.community/discussion/comment/664635/#Comment_664635 and we'll take a closer look.

May 26, 2023

@cornusamomum Although we have fixes for these agent refused operation errors the case with clamshell mode may be slightly different, are you still experiencing this behaviour?

May 30, 2023

Confirming this also worked for me:

I was able to solve this issue by completely quitting 1Password (i.e. close it from the menubar not just the app itself) and restarting the macOS ssh agent process. Once I did that the issue went away. I suspect that restarting the macOS ssh agent would have been enough, but I neglected to try only that.

MatiasLGonzalez
June 7, 2023

@"chris.db_1p" I was using the production version at the time, if I ever have to set it up again on a new machine, I'll make sure to share the logs :)

September 26, 2023

Same thing just happened to me. Quitting both the app and menubar item was the solution!