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

How do I get the Public key from the Yubikey? - AGAIN? #124

Open fishooo0815 opened 2 years ago

fishooo0815 commented 2 years ago

I am using this Agent for Month everything was working.

But how do I get on the Public key again, from the Yubikey without creating it new?

I want to setup a new server, but I don't know how to get the public key from the yubikey it self.

onurguzel commented 2 years ago

In order to get the public key from yubikey-agent, you can run the command below on your terminal:

ssh-add -L

You can also copy the public key directly into server:

ssh-copy-id user@hostname
lwbt commented 1 year ago

From my point of view this should also be added to an FAQ document and this issue be closed as the question is answered.