How to start ssh daemon

What is the prefered way to auto start the sshd.
Uncomment the inetd.conf
OR
sshd_enable in rc.conf.

What is the difference, is there any ?

.
 
a129878 said:
What is the difference, is there any ?

From sshd(8):
-i Specifies that sshd is being run from inetd(8). sshd is normally not run from inetd because it needs to generate the server key before it can respond to the client, and this may take tens of seconds. Clients would have to wait too long if the key was regenerated every time. However, with small key sizes (e.g. 512) using sshd from inetd may be feasible.

In short, start sshd as a daemon. Forget about inetd.
 
I've followed that brief instruction, i.e. 'sshd_enable="YES"' in the '/etc/rc.conf',
but each time when I switch-off the PC, the 'sshd' is not starting automatically.
I must start in manuall with 'service sshd start'.

Is that still any other config entry to enable the 'sshd' start automatically after reboot???
 
Hi,
I had the same problem, and found the solution:
as sudo run the following command:
Bash:
sudo rc-update add sshd boot
 
“Based on” does not mean “is”. And actually I just looked this up: GhostBSD is not based on FreeBSD at all but based on TruOS. I have no idea what TruOS is or if it is a derivative of something.

Point is, just because an OS may be similar, doesn’t mean commands from one will work in another.
 
Back
Top