Set a password for the root account
sudo passwd root
Switch to the root account
su root
Linux root account to allow remote connections
vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password //注释此行
PermitRootLogin yes //加入此行
//重启服务
service ssh restart