-
Hey there! How can I save a ssh user certificate to a yubikey? Anyone tried this bevor? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you describe your use case a bit more? |
Beta Was this translation helpful? Give feedback.
-
AFAIK an SSH certificate cannot be stored in a YubiKey. But you can sign a certificate for an
ssh-keygen -t ed25519-sk
step ssh certificate --sign [email protected] ~/.ssh/id_ed25519_sk.pub
ssh [email protected]
# OR
ssh -i ~/.ssh/id_ed25519_sk [email protected] You must provide the password (if any) and touch the YubiKey to log in. You can also add the key and cert to the ssh-agent, but you will need a recent version because not all versions support importing sk keys: ssh-add ~/.ssh/id_ed25519_sk
ssh [email protected] |
Beta Was this translation helpful? Give feedback.
AFAIK an SSH certificate cannot be stored in a YubiKey. But you can sign a certificate for an
ecdsa-sk
ored25519-sk
key that require the YubiKey present. This is how:~/.ssh/id_ed25519_sk-cert.pub
:TrustedUserCAKeys
and the certificate has a valid principal, just:You must provide the password (if any) and touch the YubiKey to log in.
You can also…