How to enable root login on Ubuntu
Posted onThis is how you can login as root with a Ubuntu server:
- Run
sudo passwd root
to enable to root account and give it a password. - Edit
/etc/ssh/sshd_config
, and add the linePermitRootLogin yes
. - Restart sshd with
sudo service sshd restart
.
You can now SSH into your machine as root.