How to Disable SSH Root Login in Linux

It is important to disable root login in your SSH service. To do this, edit /etc/ssh/sshd_config:

# pico /etc/ssh/sshd_config

And add in the following line:

PermitRootLogin no

Restart SSH service:

# /etc/init.d/sshd restart

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.