Disable Root user to login SSH service step by step

1) Log-in as Root
2) Edit /etc/ssh/sshd_config

    There is a parameter

  PermitRootLogin=Yes
 change it to

  PermitRootLogin=No 

3) restart the sshd service and make sure its turned on

    service sshd restart        or 
    /etc/init.d/sshd restart
   
    chkconfig sshd on

No comments: