sshd attempting to start twice?

Eric heli at mikestammer.com
Mon Feb 26 19:32:52 UTC 2007


Peter A. Giessel wrote:
> On 2007/02/26 10:07, Giorgos Keramidas seems to have typed:
>> On 2007-02-26 10:30, Noah <admin2 at enabled.com> wrote:
>>> sshd_enable="YES"
>>> sshd_program="/usr/local/sbin/sshd"
> 
> [snip]
> 
>>> inetd_enable="YES"
> 
> [snip]
> 
>> I see you have switched the `rc.conf' path of sshd to point to the
>> version of sshd in `/usr/local/sbin'.  Make sure that you don't have
>> *both* this setting *and* an executable script in /usr/local/etc/rc.d :-)
> 
> You might also want to check that you don't have it enabled in both
> inetd.conf and in rc.conf.  If inetd is trying to start it and rc.conf
> is trying to start it as well, that would explain your errors.


if you installed openssh port, i think the preferred way is to start it 
like this:

# disable built in SSH and enable SSH_portable
sshd_enable="NO"
openssh_enable="YES"

that way the built in sshd is not used (startup script in /etc/rc.d) and 
the openssh version is used (from /usr/local/etc/rc.d)

Eric



More information about the freebsd-questions mailing list