关于AWS 无法修改root + password登录的问题,原因是 /etc/ssh/sshd_config 文件有个 Include /etc/ssh/sshd_config.d/*.conf ,而这个 /sshd_config.d/*.conf 文件中有个 PasswordAuthentication no 的原因,所以无法登录。 解决方法也很简单,把 /sshd_config.d/*.conf 文件中的 PasswordAuthentication no 改成 PasswordAuthentication yes 或者直接删除 Include /etc/ssh/sshd_config.d/*.conf 查了下网上均没有提及到这个问题,故记录一下。 🏷 TAG #VPS #aws #lightsail 📢 Channel @ednovas2 👥 Group @ednovas4