To disallow direct root login via SSH, edit the "/etc/ssh/sshd_config" file with a text editor and find the following line:
#PermitRootLogin yes
Change the yes to no and remove the comment character at the beginning of the line:
PermitRootLogin no
Restart the sshd service.
#service sshd restart
0 comments:
Post a Comment