bin456789 / reinstall

一键DD/重装脚本 (One-click reinstall OS on VPS)
GNU General Public License v3.0
2.16k stars 347 forks source link

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

Open arloor opened 2 days ago

arloor commented 2 days ago

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

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

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

感谢大佬

bin456789 commented 2 days ago

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

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

arloor commented 2 days ago

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