分类
devops

ssh key type


Last Updated on 2023-01-28

comparing-ssh-keys

[-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa]

FIDO2-Based SSH Keys (ed25519-sk and ecdsa-sk)

The sk extension stands for security key.

ssh-keygen -t ecdsa-sk
Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
Key enrollment failed: invalid format

what is fido2 security key

recommendation of Generating SSH Key File in Linux

ssh-keygen -t ed25519


## Invalid RSA key length: maximum is 16384 bits
ssh-keygen -t rsa -b 4096 


## Invalid ECDSA key length: valid lengths are 256, 384 or 521 bits
ssh-keygen -t ecdsa -b 521

ref