Enable root login over SSH on Centos/Ubuntu/Derbian

For security reason by default disabled SSH access for root user. But You can login other user and use root privileges  with SUDO command. But sometimes We need ssh login for root user.

You can easily open that access but recommended disable SSH access for root user after finishing your job.

First you need to open ssh config file one of the following commands:

nano /etc/ssh/sshd_config    or  vim /etc/ssh/sshd_config  or  vi /etc/ssh/sshd_config

After that you need to add this line on Authentication section.

PermitRootLogin yes 

1enablesshdflkg

Save and exit from sshd_config file.

Last you need to restart ssh service with this command:

service sshd restart

Now You can connect to the server with root user.

If You have any question about this or another topic Please feel free contact with us. You can also ask to create specific articles which you want to see on our blog.

Subscribe to Us to get all interesting articles.

GOOD LUCK!!!   

Add Comment