vim /etc/ssh/sshd_config 开启 PermitRootLogin yes 开启PasswordAuthentication yes vim /etc/passwd 更改需要密码登录用户为 www:x:1001:1001::/home/www:/bin/bash systemctl restart ssh.service systemctl restart sshd.service