How to start ssh daemon

Discussion related to network/web services such as Apache, BIND Sendmail, etc.

How to start ssh daemon

Postby a129878 » 16 Mar 2010, 16:23

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
Junior Member
 
Posts: 27
Joined: 18 Jan 2010, 11:05
Location: UK

Postby tbyte » 16 Mar 2010, 16:30

[FILE]sshd_enable="YES"[/FILE] in the [FILE]/etc/rc.conf[/FILE]

[CMD=" "]/etc/rc.d/sshd start[/CMD]

It's the better way :)
User avatar
tbyte
Member
 
Posts: 109
Joined: 17 Nov 2008, 13:35
Location: Sofia, Bulgaria, EU

Postby SirDice » 16 Mar 2010, 16:43

a129878 wrote:What is the difference, is there any ?


From [man=8]sshd[/man]:
-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.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby jemate18 » 17 Mar 2010, 23:38

as for me, start it as a daemon
FreeBSD: The Power To Serve
User avatar
jemate18
Member
 
Posts: 146
Joined: 24 Jan 2009, 02:13
Location: Philippines


Return to Web & Network Services

Who is online

Users browsing this forum: nORKy and 0 guests