Open apastuszak opened 1 year ago
Looks like the underlying libssh library doesn't understand your chosen key file:
libssh::pki_openssh_import_privkey_blob > Failed to read key in OpenSSH format
ibssh::ssh_userauth_publickey_auto > Failed to read private key: /Users/andy/.ssh/id_ecdsa_sk
and then the server denies the attempt to use password authentication:
Access denied for 'password'. Authentication that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
I think support for this is not yet implemented in libssh: https://gitlab.com/libssh/libssh-mirror/-/issues/34
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
N/A
WezTerm version
20230712-072601-f4abf8fd
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
No, and I'll explain why below
Describe the bug
When I attempt to ssh into a server in my house using my Yubikey using FIDO2, I am not prompted for my pin. The ssh key is ignored and I am prompted for my SSH password.
Using the openssh client prompts me for my pin and using the ssh kitten in kitty also prompts me for my pin.
I set up my ssh key using this webpage from Yubico:
https://developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html
I created non-discoverable credentials.
To Reproduce
Use this guide from Yubico to create non-discoverable FIDO2 credentials and set them up on a server:
https://developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html
wezterm ssh -v -oIdentityFile=~/.ssh/id_ecdsa_sk servername
Configuration
no config
Expected Behavior
It should prompt me for my PIN. Then my Yubikey should start flashing and I login after I hit the button on my Yubikey.
Logs
Anything else?
No response