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

Yubico Authenticator not Working any more #109

Closed fishooo0815 closed 2 years ago

fishooo0815 commented 2 years ago

I installed the yubikey-agent It is working fine with SSH.

But the Yubico Authenticator can't find the Key any more:

Screenshot 2021-11-29 at 17 17 54
philandstuff commented 2 years ago

This is a limitation of the hardware. You can send a SIGHUP to yubikey-agent to disconnect the connection so that yubico-Authenticator can connect.

fishooo0815 commented 2 years ago

How would you send this "SIGHUP"?

philandstuff commented 2 years ago

Something like pkill -HUP yubikey-agent should do the job. Yubikey-agent will disconnect but keep running.

fishooo0815 commented 2 years ago

And is there a way to reconnect this?

philandstuff commented 2 years ago

yes, the next ssh operation will reconnect. it may ask for your passphrase/PIN again at that point.

fishooo0815 commented 2 years ago

Is it posible to trigger the command pkill -HUP yubikey-agent... ... after the connection is asstabliched ... or after a amound of secconds?

Maybe placed in the ~/.ssh/config file?