How to Disable Root SSH Access on CentOS 6 Server
By Shay Anderson on March 2014
The instructions below describe how to disable root SSH access for CentOS 6 servers. It is a good idea to disable root SSH access to prevent external root access.
Edit the file /etc/ssh/sshd_config: # nano /etc/ssh/sshd_configUncomment the line: #PermitRootLogin noSo it looks like: PermitRootLogin noSave the file and restart SSH: # service sshd restart