• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to start ssh daemon

a129878

Member


Messages: 27

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

.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,508
Messages: 25,692

#3
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.