-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got "agent refused operation" (due to FIDO keys?) #52
Comments
Which version are you running? Homebrew will know. On 2 May 2024, at 20:27, CUI Hao ***@***.***> wrote:
Hi ssh-askpass stops to work lately. I guess it's probably because I changed to FIDO keys (with Yubikey) but I'm not 100% sure.
This is some environment information before I using ssh:
$ launchctl list | grep ssh
- 0 com.openssh.ssh-agent
- 0 homebrew.mxcl.ssh-askpass
$ echo $SSH_AUTH_SOCK
/private/tmp/com.apple.launchd.dk9s8NMHKf/Listeners
$ echo $SSH_ASKPASS
/opt/homebrew/opt/ssh-askpass/bin/ssh-askpass
When I do ssh <host> the first time, it asks me for the passphrase. I enter it and touch my yubikey to unlock it, and login successfully:
$ ssh <host>
Enter passphrase for key '/Users/cuih7/.ssh/id_ed25519_sk':
The next time I login, the ssh-askpass GUI pops up. But after clicking on "OK", ssh complaints agent refused operation and fallbacks to password auth:
$ ssh <host>
sign_and_send_pubkey: signing failed for ED25519-SK "/Users/cuih7/.ssh/id_ed25519_sk": agent refused operation
<host>'s password:
$ launchctl list | grep ssh
1073 0 com.openssh.ssh-agent
- 0 homebrew.mxcl.ssh-askpass
$ echo $SSH_AUTH_SOCK
/private/tmp/com.apple.launchd.dk9s8NMHKf/Listeners
$ echo $SSH_ASKPASS
/opt/homebrew/opt/ssh-askpass/bin/ssh-askpass
Any ideas? Thank you.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
It's 1.5.0.
|
Hi, I'm seeing much the same issue, but I'm not using FIDO keys, just a new ed25519 one which I created. I'm running macOS Sonoma 14.4.1, and using ssh-askpass 1.5.0 as above. Getting the same |
Like with |
Like with ssh-keygen -t ed25519?Yes, exactly.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
@edmundcraske Your problem is a seperate issue, let's take that in #53. |
@cuihaoleo Which I just learned that FIDO2 keys doesn't work with macOS (I patched to 14.5 yesterday and it still doesn't work) built-in
Looks like Apple will support FIDO2-keys when they upgrade OpenSSH, probably next OS X release. We can only hope. |
You are right. Indeed I'm running My ssh command recognizes FIDO keys because I actually installed openssh from Nix:
If I kill the system ssh-agent and bring the Nix's up, ssh-askpass works as expected:
Thank you very much for pointing this out. I think I'll just work it around by starting Nix's ssh-agent. Feel free to close the issue if you determine there is nothing ssh-askpass can do. |
Nice, great job!
Just out of curiosity: how/why does your nix put it in
/run/current-system/sw/?
|
Oops, sorry for the late reply. That's because I use nix-darwin. |
|
Hi ssh-askpass stops to work lately. I guess it's probably because I changed to FIDO keys (with Yubikey) but I'm not 100% sure.
This is some environment information before I using ssh:
When I do
ssh <host>
the first time, it asks me for the passphrase. I enter it and touch my yubikey to unlock it, and login successfully:The next time I login, the ssh-askpass GUI pops up. But after clicking on "OK", ssh complaints
agent refused operation
and fallbacks to password auth:Any ideas? Thank you.
The text was updated successfully, but these errors were encountered: