Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arloor opened this issue Sep 27, 2024 · 2 comments
Open

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

arloor opened this issue Sep 27, 2024 · 2 comments

Comments

@arloor
Copy link

arloor commented Sep 27, 2024

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

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

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

感谢大佬

@bin456789
Copy link
Owner

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

真正要注意的是 01-permitrootlogin.conf ,虽然这是最佳实践
#144
我迟点加个提醒吧

@arloor
Copy link
Author

arloor commented Sep 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants