Sunday, May 27, 2012

Block root shell access in SSH


  vi /etc/ssh/sshd_config

 Locate the parameter -- PermitRootLogin yes

  Change this to PermitRootLogin no

  Save and exit

 Restart your sshd by typing /etc/init.d/sshd restart

No comments: