Master da Web
Back to Blog

Allow Root access in SSH

LucasApril 7, 20171 min readUpdated on November 4, 2023

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!

Tags#linux#root#SSH
Share

Need Hosting or Servers?

Discover our VPS, dedicated servers and professional hosting solutions

Related Articles

View all articles