Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2005 05:15:12 +0000 (UTC)
From:      Christopher Nehren <apeiron+usenet@coitusmentis.info>
To:        freebsd-questions@freebsd.org
Subject:   Re: "./sshd start" then nothing
Message-ID:  <slrnd2t1n8.231.apeiron%2Busenet@prophecy.dyndns.org>
References:  <f84c385805030820191eb5915@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnd2t1n8.231.apeiron%2Busenet>