From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 06:00:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D7CD16A4CE for ; Wed, 9 Mar 2005 06:00:25 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6885E43D1D for ; Wed, 9 Mar 2005 06:00:24 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1D8uEm-0006Uj-38 for freebsd-questions@freebsd.org; Wed, 09 Mar 2005 07:00:04 +0100 Received: from pcp08490587pcs.levtwn01.pa.comcast.net ([68.83.169.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2005 07:00:04 +0100 Received: from apeiron+usenet by pcp08490587pcs.levtwn01.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2005 07:00:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Christopher Nehren Date: Wed, 9 Mar 2005 05:15:12 +0000 (UTC) Organization: /usr/bin/false Lines: 26 Message-ID: References: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pcp08490587pcs.levtwn01.pa.comcast.net User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: s X-MailScanner-From: freebsd-questions@m.gmane.org X-MailScanner-To: freebsd-questions@freebsd.org Subject: Re: "./sshd start" then nothing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 06:00:25 -0000 On 2005-03-09, Tsu-Fan Cheng scribbled these curious markings: > I am trying to enable sshd on my freebsd5.4 prerelease (I didn't > realize this when I cvsup the stable source). Anyway. I read something > in the mailing list which said that I should go to /etc/rc.d, then > execute "./sshd start" from there, this will make ssh-keygen to > generate host key and stuff. I did this and there is nothing, the > "ssh_host_dsa_key" is not generated. I have another box which runs > 5.3, and it generates key when I did the same thing. I wonder where > can it go wrong? Do you have the following line in /etc/rc.conf? sshd_enable=YES You need this line, or otherwise sshd start won't start sshd. You can use forcestart, but that will only start it once, and won't have it restart at each reboot. I recommend reading rc(8) and rc.conf(5) Best Regards, Christopher Nehren -- I abhor a system designed for the "user", if that word is a coded pejorative meaning "stupid and unsophisticated". -- Ken Thompson If you ask the wrong questions, you get answers like "42" and "God". Unix is user friendly. However, it isn't idiot friendly.