sudo nano /etc/ssh/sshd_configUncomment the following entry in the sshd configuration file and change it to yes:
PermitRootLogin YesRestart the SSH service
sudo systemctl restart sshdYou have to create a password for the root user:
sudo passwd root