How to start ssh daemon

a129878

Member


Messages: 27

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 ?

.
 

tbyte

Active Member

Reaction score: 2
Messages: 119

sshd_enable="YES" in the /etc/rc.conf

/etc/rc.d/sshd start

It's the better way :)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,302
Messages: 32,149

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.
 

darekpawel

New Member


Messages: 1

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???
 

marius_d

New Member


Messages: 2

Hi,
I had the same problem, and found the solution:
as sudo run the following command:
Bash:
sudo rc-update add sshd boot
 

Sevendogsbsd

Aspiring Daemon

Reaction score: 353
Messages: 738

“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.
 

nalatroz

New Member

Reaction score: 1
Messages: 1

TrueOS is based off of FreeBSD(-CURRENT to be more accurate). If I remember right it used to be called PC-BSD until a couple of years ago,
 
Top