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

August 16, 2022

Thanks for sharing your findings @ScottBassin. We'll further investigate this issue.

October 25, 2022

I had the same problem after turning on Apple Watch unlock on my Mac, just needed to turn it on in 1password too

November 4, 2022

I also hit this issue – no errors, nothing worked with SSH until I enabled apple watch in 1password.

November 10, 2022

Still hitting this issue on the newest version – I'd really prefer to not have my watch unlock 1password.

November 15, 2022

I ran into something similar. I saw the same error message agent refused operation.

Context:
1Password for Mac 8.9.8 (80908009)
I'm normally using an apple watch to unlock, and my laptop is closed.

To fix it I first tried to disconnect my watch which didn't work. I then opened my laptop and rebooted 1password, this seemed to fix it as I got a prompt to authenticate using my fingerprint. I still haven't tried adding my watch again, but this is indeed a problem.

Jack_P_1P
1Password Employee
November 17, 2022

Hi @garrettmoon and @kimbjorkman:

Taking a closer look at 1Password on your Mac would likely be the next best step. I'd like to ask you to create a diagnostics report from your Mac:

Sending Diagnostics Reports (Mac)

Attach the diagnostics to an email message addressed to support+forum@1password.com.

With your email please include:

You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!

December 5, 2022

I received several agent refused operation messages until i opened my cover and saw the fingerprint prompt, authed with the fingerprint. I was then able to connect. I'm using Ventura 13.0.1 on M1 Pro with 1Password 8.9.8.

Jack_P_1P
1Password Employee
December 16, 2022

Hi @jtesmeriqnox:

If you run into trouble using the SSH agent when in clamshell mode again, we'd be happy to take a closer look.

Jack

February 21, 2023

Hello! I think I just ran into this issue as well. When I use my laptop in clamshell mode, I often get an error like sign_and_send_pubkey: signing failed for ED25519 "REDACTED" from agent: agent refused operation. If I launch my terminal prior to clamshell mode and authenticate with my fingerprint, this error doesn't occur when I re-enter clamshell mode and any ssh key operations (such as git push origin HEAD) work without issue. Though this work around is effective, it took me a while to figure out, so I imagine other users are running into it. Is there some way I can help debug this issue to fix it?

February 23, 2023

i have the same issue, and i know for sure that i didn't change anything on my config in the last week