1 修改 /etc/ssh/sshd_config #PermitRootLogin yes 取消注释并改为 PermitRootLogin no 2 重启ssh /etc/init.d/sshd restart