Enable root user to login via SSH

sudo nano /etc/ssh/sshd_config

Uncomment the following entry in the sshd configuration file and change it to yes:

PermitRootLogin Yes

Restart the SSH service

sudo systemctl restart sshd

You have to create a password for the root user:

sudo passwd root

Leave a Reply