Re: `pkg_info | grep -i openssh` ; echo "2.9 vs 3.0.2?" [cjc]

From: Crist J. Clark (crist.clark@attbi.com)
Date: 04/10/02


Date: Tue, 9 Apr 2002 23:42:11 -0700
From: "Crist J. Clark" <crist.clark@attbi.com>
To: Peter Leftwich <Hostmaster@Video2Video.Com>

On Wed, Apr 10, 2002 at 02:35:16AM -0400, Peter Leftwich wrote:
> On Mon, 8 Apr 2002, Crist J. Clark wrote:
> [snip]
> > PL> My question was regarding ssh, not sshd.
> > Then I shall reprhase: Are you actually running the ssh(1) in /usr/local/bin/ssh or the old one in /usr/bin/ssh?
> > Crist J. Clark | cjclark@alum.mit.edu,cjclark@jhu.edu
> > http://people.freebsd.org/~cjc/ | cjc@freebsd.org
>
> I apologize for being snippy, if I seemed so. You alone fixed my woes!!! :)
>
> # ssh -V
> OpenSSH_2.9 FreeBSD localisations 20011202, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
> # which ssh
> /usr/bin/ssh
> # /usr/local/bin/ssh -V
> OpenSSH_3.0.2, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
> # mv /usr/bin/ssh /usr/bin/ssh_2.9_old_dont_use
> # ln -s /usr/local/bin/ssh /usr/bin/ssh
>
> I guess that last line isn't really necessary if I adjust my $PATH, huh?

Probably, the "cleanest" thing to do is define a shell alias (assuming
you use a shell that supports them),

  $ alias ssh /usr/loca/bin/ssh

Would be the csh(1)-ish way to do it.

-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message


Relevant Pages


Quantcast