Daily Archives: October 14, 2013


restrict sshd users

in /etc/ssh/sshd_config (on some systems it is simply /etc/sshd_config) add: AllowUsers root AllowUsers joe Note that as soon as you enable one AllowUsers option, no users can login unless they are listed. In other words, despite the PermitRootLogin setting, if you do not set “AllowUsers root” and have “AllowUsers joe” in your configuration, root cannot log in even with a […]