• 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



Messages: 27

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

What is the difference, is there any ?



Staff member

Thanks: 5,508
Messages: 25,692

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.