Create account Login Webmail Contact Us



 
Knowledgebase
How to disable direct root login via SSH.
Posted by admin on 11 September 2009 11:05 PM
You can disable direct root login via ssh by editing the ssh configuration file, located at /etc/ssh/sshd_config , and adding the following line to the file:

PermitRootLogin no

For the change to take effect, restart the sshd service with the following command:

# service sshd restart

Please note: Do not disable root login without creating, and testing, a wheel user account first. You will need a wheel user to log into ssh and then switch to root in order to control your system remotely.
(419 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: