Skip to main content
Aug 8, 2022 8:09 PM UTC
Question

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

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

Aug 16, 2022 6:35 AM UTC

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

Oct 25, 2022 3:08 AM UTC

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

Nov 4, 2022 7:06 PM UTC

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

Nov 10, 2022 3:58 PM UTC

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

Nov 15, 2022 4:05 AM UTC

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
1Password Employee
Nov 17, 2022 6:58 PM UTC

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!

Dec 5, 2022 4:34 PM UTC

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
1Password Employee
Dec 16, 2022 11:03 PM UTC

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

Feb 21, 2023 4:12 AM UTC

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?

Feb 23, 2023 12:24 AM UTC

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