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

4

u/sdns575 Oct 29 '25

Hi and thank you for your answer. For new server is better use ed25519?

4

u/hijinks Oct 29 '25

Both are considered modern and secure. Ed25519 is considered faster because the bits are 256 vs 4096. You'd never notice a difference if you are using it to ssh into servers.

2

u/KAMSPioneer Oct 30 '25

Ed25519 is definitely much faster than RSA, but not just because of the key sizes. An obvious counterexample would be the fact that Ed25519 signatures/verifications are much faster than NIST P-256, even though the key size for the NIST curves is also 256 bits.

The mathematics of elliptic curves, the design choices of the curve/algorithm, and the library optimization are all major factors beside the key size...(disclaimer: I'm not a cryptographer, don't believe anything I say).

1

u/sdns575 Oct 29 '25

Thank you for your answer. Appreciated