禁止root远程登录 需要编辑/etc/ssh/sshd_config。 vim /etc/ssh/sshd_config 找到 PermitRootLogin 改为 PermitRootLogin no 重启 service sshd restart