Skip to content
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

SSH login with gpg keycard backed ssh key and pinentry-curses for pin fails #4386

Open
necauqua opened this issue Sep 4, 2024 · 0 comments
Labels
🐛bug Something isn't working

Comments

@necauqua
Copy link
Collaborator

necauqua commented Sep 4, 2024

Description

I know that this is a contrived setup (hence it probably wasn't reported), just making sure this is tracked.

Steps to Reproduce the Problem

  1. Have a yubikey or similar
  2. Configure a gpg auth subkey to be used for SSH and export it to the hw key
  3. Configure gpg to use pinentry-ncurses for card pin

Expected Behavior

When you do fetch/push, pinentry should ask for the pin and then everything should work.

Actual Behavior

Instead you get the classic Error: authentication required but no callback set; class=Ssh (23); code=Auth (-16).

If you ssh into something once for the pin to get cached it starts working (without asking for pin, obviously).

When it was not pinentry-curses but whatever was the default it worked fine, asking for the pin the one time with a separate dialog window.

And the most interesting thing is that gpg signing works! When you snapshot or whatever for the first time after boot it asks for the pin with pinentry and works just fine. Probably because for gpg we just call the gpg binary and for ssh it's another libssh issue - so this likely may be fixed by the openssh build.

Specifications

  • Platform: NixOS
  • Version: 0.20.0
@PhilipMetzger PhilipMetzger added the 🐛bug Something isn't working label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants