yubikey-agent icon indicating copy to clipboard operation
yubikey-agent copied to clipboard

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

Open fishooo0815 opened this issue 2 years ago • 2 comments

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.

fishooo0815 avatar Apr 08 '22 12:04 fishooo0815

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

onurguzel avatar May 10 '22 17:05 onurguzel

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

lwbt avatar Feb 18 '23 14:02 lwbt