From owner-freebsd-questions Wed Jan 23 18: 6:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by hub.freebsd.org (Postfix) with ESMTP id 5663737B404 for ; Wed, 23 Jan 2002 18:06:42 -0800 (PST) Received: from wenk (H204.C233.tor.velocet.net [216.138.233.204]) by spitfire.velocet.net (Postfix) with SMTP id B116044AAC0; Thu, 24 Jan 2002 02:06:39 +0000 (GMT) Message-ID: <01ee01c1a495$5836e700$b300a8c0@wenk> From: "Jeff Shevlen" To: "Kris Kennaway" Cc: References: <20020123163428.A1520-100000@williamt> <20020123160703.B42473@xor.obsecurity.org> Subject: Re: OpenSSH upgrade Date: Wed, 23 Jan 2002 21:08:35 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 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 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" To: "Jeff Shevlen" Cc: "Kris Kennaway" ; 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