From owner-freebsd-stable Wed Jan 2 8:59:14 2002 Delivered-To: freebsd-stable@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 4948137B405 for ; Wed, 2 Jan 2002 08:59:11 -0800 (PST) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id g02Gwxd31934; Wed, 2 Jan 2002 08:58:59 -0800 (PST) Message-Id: <200201021658.g02Gwxd31934@ptavv.es.net> To: Mike Squires Cc: Joe Halpin , FreeBSD Stable Subject: Re: System trying to start sshd twice In-reply-to: Your message of "Wed, 02 Jan 2002 09:09:36 EST." <200201021409.g02E9ak30999@ct980320-b.blmngtn1.in.home.com> Date: Wed, 02 Jan 2002 08:58:59 -0800 From: "Kevin Oberman" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Mike Squires > 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