vim /etc/ssh/sshd_config PermitRootLogin prohibit-password PermitRootLogin yes service ssh restart passwd root #设置密码