Prevent root-login on CentOS
1. Go to folder SSH
> cd /etc/ssh
2. Edit file SSH configuration
> vi sshd_config
3. Search word PermitRootLogin
> /PermitRootLogin
3. Remove # and disable PermitRootLogin
> PermitRootLogin no
4. Restart SSH service
> service sshd restart
DONE!!ð
Comments