Follow the steps below to prevent root access from ssh to your linux servers
Open the ssh configuration file
[root@server~]# vim /etc/ssh/sshd_config
Changethe following line
PermitRootLogin yes
To
PermitRootLogin no
 
Now restart the ssh demon.
[root@server~]# /etc/init.d/sshd restart
Posted in: Linux.
Last Modified: January 12, 2017

Leave a reply