1.修改配置文件 vim /etc/ssh/sshd_config 2.修改内容 #PermitRootLogin prohibit-password PermitRootLogin yes #PasswordAuthentication yes PasswordAuthentication yes 3.启动ssh服务 systemctl start ssh.service