From owner-freebsd-questions Fri Mar 8 12:58: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.xtraxion.com (e134174.upc-e.chello.nl [213.93.134.174]) by hub.freebsd.org (Postfix) with ESMTP id 583C737B405 for ; Fri, 8 Mar 2002 12:57:53 -0800 (PST) Received: from xp (xp.xtraxion.com [10.0.0.3]) by ns1.xtraxion.com (8.12.2/8.12.2) with SMTP id g28L04N6050548; Fri, 8 Mar 2002 22:00:10 +0100 (CET) From: "Rick Hoppe" To: "Kevin Golding" , "Sean O'Neill" Cc: Subject: RE: SSH in /usr/bin and OpenSSH 3.1 in ports Date: Fri, 8 Mar 2002 21:57:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Kevin Golding > Subject: Re: SSH in /usr/bin and OpenSSH 3.1 in ports > > In message <5.1.0.14.0.20020308135827.00aa72e8@postoffice.swbell.net>, > Sean O'Neill writes > >I'm a bit confused. FreeBSD 4.5R comes with SSH already > available - mine > >shows up as OpenSSH 2.9. > > > >I'm confused because the ports doesn't update this ssh - it puts OpenSSH > >3.1 into /usr/local - which makes sense but that's where I'm confused. > > > >Is there a way to update the /usr/bin/ssh (and elsewhere)? Well, > one way is > >to download the source and have at it - not the option I'm looking for. > > It's a pretty good one though :) > > >If using ports OpenSSH, what about the /usr/bin/ssh? > > You disable it in /etc/rc.conf > > Next time the machine boots it should switch from the base version to > the ports version. > > Kevin > -- > kevin@caomhin.demon.co.uk Yes and no. If you use the OpenSSH port (/usr/ports/security/openssh/), I believe a sshd-startupscript is placed in /usr/local/etc/rc.d/ In that case Kevin is correct. But if you install the OpenSSH-portable version (/usr/ports/security/openssh-portable/), no additional startupscript is put in /usr/local/etc/rc.d/ In that case you need to modify /etc/rc.conf by adding the following line: sshd_program="/usr/local/sbin/sshd" That is what you need to do after you installed the new OpenSSH-portable version from the ports before you reboot the machine. If you don't want to reboot the machine just yet, you can do a 'killall sshd' and start the new sshd in /usr/local/sbin , but change /etc/rc.conf too so a future reboot will start the correct sshd. BTW, when the OpenSSH-portable port installation is finished the file named pkg-message is displayed. This also tells you what to do when the installation is finished. But I really do believe that not everybody takes the time to read those instructions (and I think that's a shame). Regards, Rick Hoppe Network- and Systemspecialist Xtraxion Internet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message