How to enable the `root` SSH login in Debian / Ubuntu (if it is disabled)?

Set in /etc/ssh/sshd_config:

PermitRootLogin yes
PasswordAuthentication yes

Then restart SSH:

service ssh restart

on Amazon Linux:

/etc/init.d/sshd restart

askubuntu.com/a/489034

See also: