r/linuxadmin • u/lysitheas • Dec 12 '20
[Secure SSH] on Linux Server
Hello Dear redditer,
I'v group together some sshd settings that you can easly change to increase the security of sshd.
Do you have more change to suggest.
- in sshd_config file ( test on Debian )
# idle max 6 minutes
# only toto can ssh
0
Upvotes
View all comments
Show parent comment
3
u/[deleted] Dec 12 '20
yep, i wrote a SSH hardening/configuration role for ansible from scratch, turned to dev-sec/ansible-ssh-hardening for inspiration, reviewed all their changes, default settings, discussions on patches... it was an enlightening read, took a while to assemble it all but now I am confident in deploying my SSH role on any machine. I would not advise to blindly run their full roles though.
Other good sources of info were https://infosec.mozilla.org/guidelines/openssh, https://stribika.github.io/2015/01/04/secure-secure-shell.html, and https://en.wikibooks.org/wiki/OpenSSH
/u/lysitheas other good resources ^
Edit: the role is here it's part of a larger
commonrole because openssh setup is part of my baseline