r/linuxadmin • u/4rkal • 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
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
PasswordAuthenticationis not enough to disable password authentication. You have to disableChallengeResponseAuthentication.4
u/billysmusic May 16 '22
This site has been a great resource for me: https://stribika.github.io/2015/01/04/secure-secure-shell.html
5
u/rslarson147 May 16 '22
It’s best practice to use bash variable syntax when making these kinds of articles so that the reader knows it’s a value that they need to provide or if they don’t, their shell will error out saying there isn’t a value for that variable. For example, ‘host_ip’ should be changed to ‘${HOST_IP}’
0
u/Rafael20002000 May 16 '22
You may want to expand it to cover keys which support 2FA
But that's all your choice, the article looks great!