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

Ignore unready cards #130

Closed bertschneider closed 1 year ago

bertschneider commented 2 years ago

If other cards, e.g. due to internal card readers, are present, they are probably preferred and the YubiKey can not be used. Ignore unready cards and use the first available one.

Internal card readers are often present but seldom used. But they probably show up, at least that's the case on my system, before the external YubiKey and hence prevent its usage for yubikey-agent. When using the first ready card chances are much higher that it's actually the intended YubiKey.

bertschneider commented 2 years ago

Related to https://github.com/FiloSottile/yubikey-agent/pull/54

smlx commented 2 years ago

Since #54 was closed without merging it made yubikey-agent unusable for me. I now use https://github.com/smlx/piv-agent instead, you might be interested in trying that.

bertschneider commented 2 years ago

@smlx I didn't know that project. Thx for the hint!

FiloSottile commented 1 year ago

Thank you! I made a small change to ensure the Open error is not dropped on the floor.