sudo passwd root
su root
vi /etc/ssh/sshd_config #PermitRootLogin prohibit-password //注释此行 PermitRootLogin yes //加入此行 //重启服务 service ssh restart
设置linux远程使用root账户
原文:https://www.cnblogs.com/zhouyu0-0/p/11997022.html