Deactivate SSH login for user root

One of the biggest security holes on a linux server that the user root can login in through ssh into the system. Every so-called cracker can use a brute force attack to try to break the password of the root user so the cracker possibly have all access to the system.

It is wise to create a separate account you through sudo or su to log in as root user.


Search for “PermitRootLogin”

Remove the hash for “PermitRootLogin”

Restart sshd service

Please let me know if this manual ‘Deactivate SSH login for user root’ was usefull to you. If there are  errors or you have suggestions regarding this manual, please let me know.
No rights can be derived from this manual

Regards,

Maarten

Maarten Schoonus

Leave a Reply