调试服务器安装cloud-init 卸载后发现SSH 无法登录

解决方案
终端下 登录 打开 /etc/ssh/sshd_config
修改 修改PasswordAuthentication no 为: PasswordAuthentication yes

然后执行重启sshd服务
service sshd restart
/etc/init.d/sshd restart

成功。
产品更新、运营公告与行业观察
一手消息,第一时间同步给你
调试服务器安装cloud-init 卸载后发现SSH 无法登录

解决方案
终端下 登录 打开 /etc/ssh/sshd_config
修改 修改PasswordAuthentication no 为: PasswordAuthentication yes

然后执行重启sshd服务
service sshd restart
/etc/init.d/sshd restart

成功。