I am facing a peculiar problem with openssh. I have built openssh_8.0p1on zeus.
The sshd.service file is as follows:
Description=OpenSSH server daemon
ExecStart=/usr/sbin/sshd -D $OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
It starts without issues, if i do a systemctl start sshd.service. If I do a test of the config file it does not come up with any errors:
genericx86-64:~$ sudo /usr/sbin/sshd -t
If I reboot the server, sshd does not start. There is no error on syslog. I have enabled debug logging, still no logs in syslog.
Even systemctl is-enabled sshd shows as enabled.
After a reboot, if I do a systemctl status sshd it shows:
Loaded: loaded (/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: inactive (dead)
If I manually run systemctl start sshd.service, everything works perfectly well without issues. sshd start on 0.0.0.0:2224 and I am able to ssh in as well.
It's just that systemctl is not able to start sshd after a reboot and there is no error that i can find or debug. Absolutely run out of ideas to resolve this. Any help will be greatly appreciated.
Thanks and Regards,