sshd not starting up on system boot

Post your general questions or comments about GhostBSD here!
Post Reply
gautamdas
Posts: 9
Joined: Sat Jul 06, 2019 4:53 pm

sshd not starting up on system boot

Post 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?
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: sshd not starting up on system boot

Post by ericbsd »

We use OpenRC so service is started differently.

Code: Select all

sudo rc-update add sshd default
gautamdas
Posts: 9
Joined: Sat Jul 06, 2019 4:53 pm

Re: sshd not starting up on system boot

Post by gautamdas »

Thanks. Much appreciated.

What is the best way to start smbd and nmbd at boot?
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: sshd not starting up on system boot

Post by ericbsd »

Same command but with your service instead of sshd.
Post Reply