Disable Login SSH as Root
Labels:
Linux
|
No comment yet
By default SSH allows users to access the machine remotely as root. This is very risky for you as a System Administrator. following way perm disable SSH as root:1. Open the SSH configuration
$ sudo nano /etc/ssh/sshd_config
Find the section this line:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
Edit to change the PermitRootLogin to no
PermitRootLogin no
2. Save settings for, and then restart the SSH
$ sudo /etc/init.d/ssh restart
Done
Post a Comment