How to enable ssh root access on Ubuntu 16.04

How to enable root login

login to the system using your credentials. and edit the following file

 

sudo vim /etc/ssh/sshd_config

comment out the following line

PermitRootLogin without-password

Make changes in the following line

PermitRootLogin yes

restart the service

service ssh restart

Setup a new password for root

sudo passwd

Reload ssh service

sudo service ssh reload

Now you can ssh using root!

Leave a Reply

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