Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 21:08:35 -0800
From:      "Jeff Shevlen" <jshevlen@passedpawn.com>
To:        "Kris Kennaway" <kris@obsecurity.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: OpenSSH upgrade
Message-ID:  <01ee01c1a495$5836e700$b300a8c0@wenk>
References:  <20020123163428.A1520-100000@williamt> <20020123160703.B42473@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks again Kris,

I've got the ssh client all squared away; and some foggy notions are a
little less so.


----- Original Message -----
From: "Kris Kennaway" <kris@obsecurity.org>
To: "Jeff Shevlen" <jeff@passedpawn.com>
Cc: "Kris Kennaway" <kris@obsecurity.org>; <freebsd-questions@FreeBSD.ORG>
Sent: Wednesday, January 23, 2002 4:07 PM
Subject: Re: OpenSSH upgrade

On Wed, Jan 23, 2002 at 04:38:13PM -0500, Jeff Shevlen wrote:
>
> Thanks!
>
> I took the low road and made the changes to rc.conf, rebooted, and now
> everythings come up current.  I see the problem was that sshd was compiled
> (or something) in with the kernal...

No, not the kernel -- it's a userland binary which is compiled in
FreeBSD by 'make world' which rebuilds everything which comes bundled
as part of the "base operating system" (all of the standard binaries,
libraries etc in /bin, /sbin/ /usr/lib, etc, but not any third party
software like ports which you install yourself)

By default FreeBSD will start the version of sshd which comes
standard, which lives in /usr/sbin/sshd.  If you want to replace it
with another version which lives in another directory, you have to
tell FreeBSD where to find it (this goes in /etc/rc.conf).

> Also, maybe you can answer some of my newbie questions in regards to your
> response:
> (1) when you say "system files", are these files complied with the kernal?
> or are they kernal modules? or are they something else? I haven't really
> wrapped my head around this.

No, I mean the files in /sbin, /usr/sbin, /usr/lib /bin, etc.  What
are usually called "userland" applications.

> (2) you mention that I could remove the sshd files manually, but would it
> then be possible to re-integrate the latest version of OpenSSH as
> system files again (effectively replacing the old files in /etc/sbin?)

By system files I just mean "files which come standard with FreeBSD".
There's nothing magical about them, and they're application binaries
just like the ones which get installed by ports.  The only difference
is the directory they live in; ports are installed into a separate
directory hierarchy (/usr/local) to keep everything nice and clean and
separate.

> (3) the changes I've made do not affect the ssh client.  When I type # ssh
> -V ... I still get the old version.  Where is ssh initialized?  How do I
> upgrade the client too?

Like I said, set your PATH so that your shell looks in /usr/local/bin
first for the ssh binary you installed from the port, instead of
/usr/bin.

Kris



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01ee01c1a495$5836e700$b300a8c0>