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

Cannot authenticate SSH after any GPG operations #59

Open
hfziu opened this issue Aug 30, 2021 · 2 comments
Open

Cannot authenticate SSH after any GPG operations #59

hfziu opened this issue Aug 30, 2021 · 2 comments

Comments

@hfziu
Copy link

hfziu commented Aug 30, 2021

Hi,

I'm using a YubiKey 5 NFC with WinCryptSSHAgent. I've generated a certificate in PIV certificate Slot 9a:
image

and it works well with WinSSH. However, after each time I perform any GPG operation (e.g., gpg --card-status, gpg --sign, etc.), I can no longer use my YubiKey with WinCryptSSHAgent to authenticate SSH connections:
"The smart card cannot perform the requested operation or the operation requires a different smart card."
image

Seems like that once I've performed any GPG operation, Windows will no longer read the PIV certificates stored in YubiKey until replugging.

Any idea or solution on this issue? Thanks a lot!

@hfziu
Copy link
Author

hfziu commented Aug 30, 2021

Append: seems like the same issue with #1 and #10

OpenPGP conflicts with WinCryptSSHAgent

@akosyrev
Copy link

AFAIK this is common gpg issue, it exclusively locks tokens. It was reproduced in my environment on ubuntu 18 host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants