Create ssh secret key

Hello!
I read about creating a ssh key directly on a hardware key like
described Generating a new SSH key and adding it to the ssh-agent - GitHub Enterprise Cloud Docs.

Did anyone successfully run this line
ssh-keygen -t ed25519 -C "your_email@example.com"
?
For me this is not working.
:frowning:
I get

You may need to touch your authenticator to authorize key generation.
No FIDO SecurityKeyProvider specified
Key enrollment failed: invalid format

The key is not blinking either.
regards
T.L.

Last time I did it, I opted to use a resident keys since it wasn’t working with non discoverable credential.

ssh-keygen -t ed25519-sk -O resident

This allow you with the knowledge of the pin and the key to use it on any computer without having to transfer any files.

1 Like