vi /etc/ssh/sshd_config 将PermitRootLogin的注释取消,或者将no改为yes service sshd restart 转载于:https://www.cnblogs.com/xyh592/articles/4882119.html