-
Notifications
You must be signed in to change notification settings - Fork 751
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
SSH issue after running devsec.hardening.ssh_hardening role #854
Comments
Hey @jobetinfosec, we would appreciate if you use the provided template for reporting Issues. Which version of our collection are you using? Since this is a bug, that was fixed in 10.0.0 (more specific #784) it should not happen anymore. |
Hi @schurzi |
interesting. What does the task |
TASK [devsec.hardening.ssh_hardening : Ensure privilege separation directory exists] |
I think I found the culprit... |
I am glad you solved the issue for your case. I consider failures that lead to an inaccessible server very serious, so I'd like to understand how you arrived at this problem. I tried several ways to replicate this issue with my test servers. I could not reproduce this problem. Can you describe a bit more clearly how I can trigger this problem? |
Hi @schurzi |
Hi @schurzi However, testing it again on another server this time using an Ansible playbook, a further issue came out...
The Ansible playbook I used, simply updates and upgrades system packages, add 3 sudo users and installs a few basic packages:
Any idea? |
I ran this role against a fresh installed Ubuntu 24.04 server, and the end, the following error showed up:
fatal: [domain.tld]: FAILED! => {"changed": false, "msg": "Unable to start service ssh: Job for ssh.service failed because the control process exited with error code.\nSee \"systemctl status ssh.service\" and \"journalctl -xeu ssh.service\" for details.\n"}
Via a dashboard console, I managed to log as root user and check logs:
fatal: chroot ("/run/sshd"): No such file or directory [preauth]
How may I fix this?
The text was updated successfully, but these errors were encountered: