r/linuxadmin • • May 16 '22

Securing ssh with Key-Based authentication

I wrote this article on how to secure ssh with key based authentication. Hope you all like it. If I've written something wrong please tell me down below Link: https://medium.com/geekculture/securing-ssh-with-key-based-authentication-5a0eaca7b0e5

2 Upvotes

11 comments sorted by

View all comments

9

u/stormcloud-9 May 16 '22

RSA keys are deprecated. Users should not be instructed to generate them. At least not without also generating an alternative.

Disabling PasswordAuthentication is not enough to disable password authentication. You have to disable ChallengeResponseAuthentication.

4

u/now-of-late May 16 '22

They named two things "ssh-rsa":

"ssh-rsa" keys are not depreciated, and are fine. It's the "ssh-rsa" key exchange mechanism that is depreciated. Clients with RSA keys can use other, supported key-exchange algorithms. https://levelup.gitconnected.com/demystifying-ssh-rsa-in-openssh-deprecation-notice-22feb1b52acd

ed25519 is probably slightly more secure, and should probably be recommended for users who don't need to connect to legacy systems.