Revision 7 as of 2020-01-06 16:18:22

Clear message

Passwords

One time passwords Mobile

One time passwords Desktop

Use SSH

Change codes

To use this, it's recommended that you put a PIN, a PUK and a management code on your Yubikey. To do this, start the GUI, or use the following commands:

ykman piv change-pin
ykman piv change-puk
ykman piv change-management-key

The default codes for a new Yubikey are:

Generate certificates

Now making the Yubikey understand SSH. Generate the private key, certificate and the public SSH-key.

ykman piv generate-key -a RSA2048 9a pubkey.pem

ykman piv generate-certificate -d 1826 -s "SSH Key" 9a pubkey.pem

ssh-keygen -i -m PKCS8 -f pubkey.pem > pubkey.txt

Configuration

Debian

Add on top to your SSH config file ~/.ssh/config:

PKCS11Provider /usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11.so

Mac OS X

For MacOSX, there's more to do:

brew install opensc

sudo ln `brew list opensc |grep lib/opensc-pkcs11.so` /usr/local/lib/opensc-pkcs11.so

PKCS11Provider /usr/local/lib/opensc-pkcs11.so

And that's enough to make ssh possible.

SSH Agent

To be found out.

More information


CategoryHardware