Enable SSH root login on Ubuntu

How to allow SSH Remote Access for the root account:

You will need to change the /etc/ssh/sshd_config file to allow this:

sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
You then need to Restart the SSH service:
sudo systemctl restart ssh
Then you should set a password for root:
sudo passwd

That is it.


Posted

in

, , ,

by

Tags:

Comments

Leave a Reply