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

YK Neo signing fails #32

Closed
felixhammerl opened this issue May 31, 2020 · 2 comments
Closed

YK Neo signing fails #32

felixhammerl opened this issue May 31, 2020 · 2 comments
Labels
upstream This is an issue in piv-go

Comments

@felixhammerl
Copy link

First of all, thanks so much for creating this!

I own three identically configured YKs (4c, 5, neo), where the neo is the backup. All three keys have PIV enabled for macOS login, I just reuse slot 9a here.

Testing with Github, I've noticed that SSH auth with the Neo does not seem to work.

YK 4C (works as expected):

> ssh -T git@github.com
Hi felixhammerl! You've successfully authenticated, but GitHub does not provide shell access.

YK 5 (works as expected):

> ssh -T git@github.com
Hi felixhammerl! You've successfully authenticated, but GitHub does not provide shell access.

YK Neo:

> ssh -T git@github.com
sign_and_send_pubkey: signing failed: agent refused operation
git@github.com: Permission denied (publickey).
> killall -HUP yubikey-agent
> ssh -T git@github.com
sign_and_send_pubkey: signing failed: agent refused operation
git@github.com: Permission denied (publickey).

PGP is not in use on the YKs. Not sure what the issue might be.

> cat ~/.ssh/config
Host *
    IdentityAgent /usr/local/var/run/yubikey-agent.sock
@felixhammerl felixhammerl changed the title YK Neo YK Neo signing fails May 31, 2020
@joneskoo
Copy link

@felixhammerl Possibly a variant of go-piv/piv-go#55 that affects older Yubikeys before 4.2.8 firmware? Can you report your firmware and try running yubikey-agent in the foreground (you need to set SSH_AUTH_SOCK to the socket file that you use when running it). Without the output from yubikey-agent it's hard to say what might be going wrong.

@FiloSottile FiloSottile added the upstream This is an issue in piv-go label Jun 20, 2020
@FiloSottile
Copy link
Owner

This should be fixed in v0.1.2 thanks to the upstream fixes.

If not, please open a new issue with the contents of /usr/local/var/log/yubikey-agent.log. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream This is an issue in piv-go
Projects
None yet
Development

No branches or pull requests

3 participants