Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 21:57:34 +0100
From:      "Rick Hoppe" <mailing@rickhoppe.nl>
To:        "Kevin Golding" <kevin@caomhin.demon.co.uk>, "Sean O'Neill" <sean@seanoneill.info>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: SSH in /usr/bin and OpenSSH 3.1 in ports
Message-ID:  <MLECKHBMGODPBDHNOIAAKEFDCNAA.mailing@rickhoppe.nl>
In-Reply-To: <pNd%2Bw6A80Ri8EwNN@caomhin.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----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 <sean@seanoneill.info> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MLECKHBMGODPBDHNOIAAKEFDCNAA.mailing>