开启root帐号 sudo passwd root vim /etc/ssh/sshd_config PermitRootLogin yes systemctl restart sshd #命令行打开root远程登录 sed -i '/PermitRootLogin /c PermitRootLogin yes' /etc/ssh/sshd_config systemctl restart sshd
passwd root