Ubuntu 18.04允许root登录:

vi /etc/ssh/sshd_config

PermitRootLogin yes (默认为#PermitRootLogin prohibit-password)
:wq

service ssh restart