Sunday, December 4, 2011

Disable Root Login for your SSH Host

Edit your sshd config file:
sudo vi /etc/ssh/sshd_config


Disable root login and save:
# Authentication:
LoginGraceTime 120
PermitRootLogin yes   #change this to no
StrictModes yes


Restart your ssh server:
sudo /etc/init.d/ssh restart

No comments:

Post a Comment