Below is the easiest way to enable ‘root’ account via SSH
- Login to your Ubuntu Server
- Edit the sshd_config
- sudo vi /etc/ssh/sshd_config
- Uncomment the ‘PermitRootLogin’ and change the value of it to ‘yes’
- Save and exit the file
- Restart SSH Server
- systemctl restart sshd or service sshd restart