r/linuxadmin • • Oct 29 '25

SSH key: rsa vs ed25519

Hi,

playing with Debian 13 and SSH, while troubleshooting why an ssh-key was not able to log into a machine (local and a test VM) after setting SSH loglevel to DEBUG3 I got a message "RSA key is not allowed". Well the problem I was troubleshooting was not related to RSA but a wrong permission on key path but searching on Internet I got this: https://www.openssh.org/txt/release-8.7 where is reported that rsa-sha2-256 and rsa-sha2-512 are enabled. Many suggest to use ED25519 because it is faster, shorter and have better security due complex alg.

At this point, I should update all my server SSH key to ED25519? Some server running Debian 11 with RSA. Running ssh-keygen -l -f keypath I receive something "4096 SHA256......" this should be ok if I'm not wrong.

Should I upgrade to ED25519?

Thank you in advance.

23 Upvotes

27 comments sorted by

View all comments

Show parent comment

5

u/thequux Nov 01 '25

Ed25519 is allowed under FIPS140-3, but it's a relatively recent addition. However, most modules are only now being updated to 140-3, so systems in FIPS mode will often reject it.

If you're curious, the approved list for crypto algorithms is called SP800-140, and the signature algorithms are in SP800-140C. This refers to SP800-186 for EC-DLP based algorithms, where curve 25519 is listed in section 3.2.2.1.

For now, though, I recommend at least switching to SECP-256r1, which was allowed by 140-2 and is therefore widely supported and brings most of the advantages of Curve25519