November 14, 2010

Disable 'root' login to SSH

As a good security practice, you want to disable the ability to SSH directly to your server as 'root'.

To do this:

1. Edit /etc/ssh/sshd_config

2. Make sure the following parameter is set as follows:
PermitRootLogin no
3. Restart SSH as follows:
/etc/rc.d/init.d/sshd restart