Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2004 20:48:50 +0100
From:      Joerg Pernfuss <elessar@galgenberg.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Proper way to upgrade OpenSSH on FreeBSD 4.9
Message-ID:  <20040120204850.47824009@aragorn>
In-Reply-To: <5.2.1.1.0.20040120104942.00b1e480@pop.courtesymortgage.com>
References:  <5.2.1.1.0.20040120104942.00b1e480@pop.courtesymortgage.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Tue__20_Jan_2004_20_48_50_+0100_V5GxNctgkf2eXuUg
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 20 Jan 2004 10:50:06 -0800
Jason Williams <jwilliams@courtesymortgage.com> wrote:

> My question is, what is the proper method in doing so?
> I see that, currently in the ports tree, openssh 3.7.1p2 is available
> for install.
> There is also the possibility of installing from source.
> I would think that using the ports tree may be a very good option, as
> you can upgrade later with portupgrade.

>From ports should be better imho. It's a source install too.
Additionally it is automated and integrated.

> 
> With that in mind, what is the best method in doing this?

You have (at least) two possibilities when installing from ports.
a) "normal" installation
will install the new sshd to /usr/local/sbin/ and leave the old version
as it is. then change rc.conf :
 sshd_program="/usr/local/sbin/sshd"
 sshd_flags="-f /usr/local/etc/ssh/sshd_config"
or whereever you install the files to.
This way you can change back to the old version by changing the rc.conf
back to its defaults.

b) "overwrite" installation
specify OPENSSH_OVERWRITE_BASE (check the Makefile, but that should be
it) when installing the port. This overwrites the old base system sshd.
No need for rc.conf changes, but be sure to define NO_OPENSSH= YES in
your make.conf - otherwise the next buildworld will overwrite your
port installed sshd again.

Joerg

--Signature=_Tue__20_Jan_2004_20_48_50_+0100_V5GxNctgkf2eXuUg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFADYYtIrY0CTTJX8ARAgs2AJ0TtJRmaR8yPUaN7Y/+ABgBO8cL4QCfdD5X
ETCeQciZ2t9XqiFDyyvFhzE=
=Y+2L
-----END PGP SIGNATURE-----

--Signature=_Tue__20_Jan_2004_20_48_50_+0100_V5GxNctgkf2eXuUg--



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