Showing posts with label sshd_config. Show all posts
Showing posts with label sshd_config. Show all posts

Monday, December 27, 2010

Disallow direct root logins via SSH

Permitting root login via SSH poses high risk, so its recommended to disable root login authentication via SSH.


Edit /etc/ssh/sshd_config and set the "PermitRootLogin" as "no". This will stop root login from using SSH.

Note: Ensure you have another ID setup to access the UNIX box, else you would be in trouble to reach the box.