Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jan 2002 08:58:59 -0800
From:      "Kevin Oberman" <oberman@es.net>
To:        Mike Squires <mikes@ct980320-b.blmngtn1.in.home.com>
Cc:        Joe Halpin <joe.halpin@attbi.com>, FreeBSD Stable <freebsd-stable@FreeBSD.ORG>
Subject:   Re: System trying to start sshd twice 
Message-ID:  <200201021658.g02Gwxd31934@ptavv.es.net>
In-Reply-To: Your message of "Wed, 02 Jan 2002 09:09:36 EST." <200201021409.g02E9ak30999@ct980320-b.blmngtn1.in.home.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Mike Squires <mikes@ct980320-b.blmngtn1.in.home.com>
> Date: Wed, 2 Jan 2002 09:09:36 -0500 (EST)
> Sender: owner-freebsd-stable@FreeBSD.ORG
> 
> 
> > There is code to start sshd in both /etc/rc and
> > /usr/local/etc/rc.d/sshd.sh.
> 
> I had this when I forgot that 4.4 installs sshd as a default and reinstalled
> it from /usr/ports.  I just removed the /usr/local/etc/ entry, since I'm
> going to rerun buildworld, etc., after 4.5-RELEASE.
> 
> (I'm running 4.5-PRE #2 right now)

OK. Let me try to explain what is happening and the appropriate
response based on what version of sshd you want to run.

You have installed the ssh port which means you probably have 3.0.1 or
3.0.2. You are running 4.5-Prerelease, so you have 2.9 installed in
the base system.

If you have sshd_enable="YES" in /etc/rc.conf, rc will start 2.9 from
/usr/sbin. To prevent this from happening, edit your /etc/rc.conf file
and comment out the sshd line.

If you have /usr/local/etc/rc.d/sshd.sh, v3.0.? is being started. If
V2.9 is already running, this will fail. To prevent the system from
trying to start V3, "pkg_delete openssh" or "chmod 644
/usr/local/etc/rc.d/sshd.sh".

Unless you have a specific reason to run V3 of openssh, I'd really
suggest that you stick to the installed, standard V2.9. It's not quite
the latest and greatest, but it does get all security patches and is
consistent across FreeBSD systems.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201021658.g02Gwxd31934>