Allow Root access in SSH

shape
shape
shape
shape
shape
shape
shape
shape

Some Linux distributions, such as Ubuntu Server, do not allow the Root user to log in to SSH by default.

To allow Root access via SSH, edit the sshd_config file:

vim /etc/ssh/sshd_config

Then look for the PermitRootLogin directive and change it to the following:

PermitRootLogin yes

Now restart the SSH service:

service ssh restart

That’s it!

Leave a Reply

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

Latest news

Latest news directly from our blog.