reinstall icon indicating copy to clipboard operation
reinstall copied to clipboard

50-cloud-init.conf中允许了密码sshd登录

Open arloor opened this issue 1 year ago • 2 comments

我改了/etc/ssh/sshd_config发现没用,才发现要删除这个文件

rm /etc/ssh/sshd_config.d/50-cloud-init.conf

是否应该在文档中提醒下?或者在reinstall参数中增加一项

感谢大佬

arloor avatar Sep 27 '24 14:09 arloor

50-cloud-init.conf 的内容是PasswordAuthentication yes 经测试对root用户无效,因此这个脚本用不上,等下就删掉

真正要注意的是 01-permitrootlogin.conf ,虽然这是最佳实践 https://github.com/bin456789/reinstall/issues/144 我迟点加个提醒吧

bin456789 avatar Sep 27 '24 15:09 bin456789

在centos9上 PasswordAuthentication yes 好像是对root生效的,我用下来是的

arloor avatar Sep 27 '24 16:09 arloor