From owner-freebsd-questions Thu Jul 11 2:13: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 195DB37B400 for ; Thu, 11 Jul 2002 02:12:59 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-46-78.in-addr.btopenworld.com [217.39.46.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07CB643E64 for ; Thu, 11 Jul 2002 02:12:58 -0700 (PDT) (envelope-from danielby@home.slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17Sa0I-0001Q2-00 for freebsd-questions@FreeBSD.ORG; Thu, 11 Jul 2002 10:12:50 +0100 Date: Thu, 11 Jul 2002 10:12:50 +0100 From: Daniel Bye To: freebsd-questions@FreeBSD.ORG Subject: Re: ssh upgrade Message-ID: <20020711091250.GA5301@catflap.home.slightlystrange.or> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <001001c2288a$51cf4050$0301a8c0@FDORRE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001001c2288a$51cf4050$0301a8c0@FDORRE> User-Agent: Mutt/1.4i 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 On Wed, Jul 10, 2002 at 11:23:25PM -0400, frederic wrote: > Hi, > > I want to upgrade my version of ssh, what is the best way to do that. Whenever I tried it in the past the tar ball installed successfully but whenever I type ssh -V the old version number still shows up. I am sure I have to rename something but I am not sure what and where :-) > Ah! The old exploding $PATH trick! The ssh in the base system lives in /usr/bin, and the one installed by the ports lives in /usr/local/bin. On my system, /usr/bin is before /usr/local/bin in my $PATH, so the shell will find the base system version of ssh. To overcome this, you can rename the base system ssh to (e.g.) ssh.old, and then calling ssh without the full path will "just work". Note also that if you want to run the upgraded sshd, you need to set sshd_program in /etc/rc.conf to point to the location of the new binary: sshd_program="/usr/local/sbin/sshd" HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message