突然有一天发现ssh连接不能输入密码,只能通过密钥来登录
ssh默认不支持密码方式验证
修改/etc/ssh/sshd_config文件
把PasswordAuthentication no
修改为
PasswordAuthentication yes
重启ssh
service ssh restart
突然有一天发现ssh连接不能输入密码,只能通过密钥来登录
ssh默认不支持密码方式验证
修改/etc/ssh/sshd_config文件
把PasswordAuthentication no
修改为
PasswordAuthentication yes
重启ssh
service ssh restart