Find

How to disable SSH login for the root user.

How to disable SSH login for the root user.

1.  Edit ssh config file:
     #vi /etc/ssh/sshd_config

2. Change this line:
    #PermitRootLogin yes
     Change from yes to no

3. Restart service sshd
    #/etc/init.d/sshd restart