目录 1.问题发生原因 2.解决办法: 1.问题发生原因 腾讯云服务器centos7 重装系统后,遇到只能使用密钥登录的问题,ssh登录不可用 2.解决办法: ①只需要修改sshd_config 文件 vim /etc/ssh/sshd_config ②修改 PasswordAuthentication no 为 PasswordAuthentication yes ③按下ESC键进入vim的命令模式,再输入 :wq! 再按下回车键,保存退出