Page 1 of 1

sshd not starting up on system boot

Posted: Sat Jul 06, 2019 6:49 pm
by gautamdas
rc.conf has
sshd_enable="YES"

sysrc -a shows sshd_enable is set to YES.

[gautam@ghost ~]$ sysrc -a
devfs_system_ruleset: devfsrules_common
hostname: ghost
ifconfig_re0: DHCP
keymap: us.iso
kldload_nvidia: nvidia-modeset nvidia
ntpd_enable: YES
ntpd_sync_on_start: YES
rc_debug: YES
root_rw_mount: NO
sendmail_enable: NONE
sendmail_msp_queue_enable: NO
sendmail_outbound_enable: NO
sendmail_submit_enable: NO
sshd_enable: YES
zfs_enable: YES


However sshd service is not starting up on system boot.

In utter desperation I have resorted to checking and staring it from a cron job...
This is pathetic.

Have set rc_debug ="YES" and am getting no help.

What am I missing?

Re: sshd not starting up on system boot

Posted: Mon Jul 08, 2019 2:13 pm
by ericbsd
We use OpenRC so service is started differently.

Code: Select all

sudo rc-update add sshd default

Re: sshd not starting up on system boot

Posted: Tue Jul 09, 2019 6:30 pm
by gautamdas
Thanks. Much appreciated.

What is the best way to start smbd and nmbd at boot?

Re: sshd not starting up on system boot

Posted: Wed Jul 10, 2019 10:45 am
by ericbsd
Same command but with your service instead of sshd.