Enable SSH Logging In as root

If you instead want to be able to directly SSH in as root which is not recommended, edit this file:

/etc/ssh/sshd_config
And change the line

PermitRootLogin no
to

PermitRootLogin yes
After making that change, restart the SSH service by running the following command as root:

sudo service ssh restart

Comments