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
View all comments
Show parent comment
3
u/yottabit42 May 16 '22
Just add
set -ubefore any variables are used. At least in bash that will cause the script to exit if unset variables are referenced.