Last modified: 2023-04-08
Public-key cryptography
Brief comparison of SSH keys
Comparing SSH Keys is a quite nice comparison, which could be summarized like so:
DSA
- quite bad history of security problems caused by bad implementations
ECDSA
/ECDSA-SK
- uses elliptic curve
- in essence elliptic curve implementation of
DSA
, improves speed but not security compared toDSA
Ed25519
/Ed25519-SK
- uses elliptic curve
- considered more secure than
ECDSA
- quite popular
- really good go-to key type
RSA
- most widely adopted
- Considered secure if at least 3072 bits long
ed25519
is a good choice, got with it is possifle. It has good security and good adoption.
ecdsa
is also decent choice, but adoption is not great.
rsa
is OK if you use keys of at least 3072 bits long. It is compatible with almost everything.
dsa
should be last resort.