I am working on a Debian 11 image. I run some ansible scripts against this host, including stopping and starting sshd. sshd fails to restart on Debian 11 only (everything works in CentOS and Debian 10). From the console, there are no journalctl files available. When I start the sshd daemon in debug mode
/usr/sbin/sshd -p 12345 -D -d -e
It runs with no errors. When I start sshd with
systemctl start sshd, it says:
Job for ssh.service cancelled
/usr/sbin/sshd -T spits out the sshd_config file with no errors.
ss -antp shows nothing listening.
I am running sshd on a high port.
What else can I check? Any ideas about what could be wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.