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

2

u/sdns575 Oct 30 '25

Hi and thank you fir your answer and clarification. Appreciated

3

u/deeseearr Oct 30 '25

There's a lot of confusing language and jargon used in cryptography and it can be very confusing if you haven't studied the hard parts. I find myself spending a lot of time trying to clear up this sort of misunderstanding so that we can address the things that really are problems without having to worry about the ones that aren't.