FiloSottile / yubikey-agent

yubikey-agent is a seamless ssh-agent for YubiKeys.
https://filippo.io/yubikey-agent
BSD 3-Clause "New" or "Revised" License
2.6k stars 124 forks source link

Possible incompatibility with macOS 13.1 #135

Closed artyom closed 1 year ago

artyom commented 1 year ago

After installing the recent macOS update last week, which upgraded it from 13.0.x to 13.1, yubikey-agent stopped working for me.

It logs the following:

agent 27: ssh: parse error in message type 27
Connecting to the YubiKey...
agent 11: could not reach YubiKey: connecting to pscs: the Smart card resource manager is not running

The first error looks like https://github.com/golang/go/issues/51689, and can be fixed by updating golang.org/x/crypto dependency (go get -u golang.org/x/crypto, which brings v0.4.0).

After this, the other error still remains:

Connecting to the YubiKey...
agent 11: could not reach YubiKey: connecting to pscs: the Smart card resource manager is not running

I suspect it's more of an upstream issue with github.com/go-piv/piv-go; at the moment its readme explicitly states that on macOS it doesn't require any additional packages to work.

Unfortunately, I lack the knowledge to investigate this deeper at the moment.

artyom commented 1 year ago

Closing this for now, it looks like the piv-go compatibliitly issue is related to Go 1.20rc1, not macOS update, it works with Go 1.19.4.

Apologies!

artyom commented 1 year ago

Here's an upstream issue for the reference: https://github.com/go-piv/piv-go/issues/113