I looked around and couldn’t find a startup script for sshd. So I ran the script in /etc/openssh that configures the key files, then ran the daemon directly. Everything worked fine until I rebooted when (of course) the daemon wasn’t present. So I went to the /etc/rc.d/rc.local file and added
exec /opt/sbin/sshd &
and rebooted. That didn’t work. So I made an entry in the same file where ftpd and telnetd are started and rebooted… No good.
So for kicks I removed my changes and ran it by hand. Everything works fine.
There must be a trick here that I’m missing, and my guess is it has to do with PATH, but I’m not sure what’s missing.
So what is the correct method of starting the sshd daemon?