NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Replace default SSH with pkgsrc version



On Wed, 9 Dec 2015, IT geek 31 wrote:
In article <AA72E578-2DAC-464A-89A1-16C738D1D6A4%nimenees.com@localhost>,
Eric Haszlakiewicz  <erh%nimenees.com@localhost> wrote:
On December 8, 2015 10:15:41 AM EST, Andy Ruhl <acruhl%gmail.com@localhost> wrote:
On Tue, Dec 8, 2015 at 5:32 AM, itgeek31%googlemail.com@localhost
<itgeek31%googlemail.com@localhost> wrote:
Apologies for what may be a n00b question...

I familiar with using pkgsrc to build the latest and greatest OpenSSH
and
then installing it, but this obviously doesn't overwrite the existing
SSH
package that comes with the build.

How can I remove the default package and instruct the system to use
the one
I've built from pkgsrc?

NetBSD, and the other BSDs (that I'm aware of) don't use a package
manager for the base software. So you aren't removing the base ssh
software (which is openssh), you're just not starting it at boot time.

Which is a great way to run into problems.  Even if you need to manually
do so, if you're using ssh from pkgsrc I highly suggest removing the
base ssh binaries.
I ran into issues like this before (with pkg_add, etc...) and it can
lead to unexpected behavior when you inevitably end up running the wrong
binary.

And if you want to downgrade your openssh with the one from pkgsrc, feel
free to. You lose all the integration with NetBSD (blacklistd, hpn, etc.)
just to get the latest and the greatest which is in both cases 7.1...

christos

In my case I'm running NetBSD 5.2.2 (7.1 just isn't an option right now), which comes with OpenSSH 5.0.

So the pkgsrc version isn't exactly a downgrade...

On a related note, I've been trying to get pkgsrc sshd working on netbsd-5 too (with -7 as a client) as the base sshd fails to get Tunnel=ethernet working (device not configured when opening /dev/tap0).

However when I try, it connects but sshd quickly dies with:
channel 0: adjust 97803 overflows remote window 4294878045

--
Stephen



Home | Main Index | Thread Index | Old Index