修改ssh配置文件 vim /etc/ssh/sshd_config #PasswordAuthentication yes      #去掉前面的“#” 添加 PermitRootLogin yes 重启ssh service ssh restart