情况描述 普通用户正常登陆 root用户登陆 解决方案 打开 /etc/ssh/下的 sshd_config文件 vim /etc/ssh/sshd_config改成下面这样(将PermitRootLogin prohibit-password) 注释;加上yes这行 重启ssh 服务 /etc/init.d/ssh restart然后用xshell登陆root,就成功啦