偶然发现DMIT Debian系模板无法用密码登录
用常用的一建修改密码不行,看了看sshd_config也没啥问题,突然发现有个sshd_config.d的目录,进去发现果然是这玩意儿搞鬼
root@Man:/etc/ssh/sshd_config.d# cat 50-cloud-init.conf
PasswordAuthentication no
root@Whatcanisay:/etc/ssh/sshd_config.d# rm -rf 50-cloud-init.conf
解决方法:删掉50-cloud-init.conf就行
Comments | NOTHING