Disable ssh root access - Debian / Ubuntu

Open /etc/ssh/sshd_config if find entry similar to this:

PermitRootLogin yes

and change it to:

PermitRootLogin no

then restart your sshd service with:

/etc/init.d/ssh restart

Leave a Reply

You must be logged in to post a comment.