1

The versions of OpenSSH and OpenSSL that ship with the Ubuntu base version can be several releases out of date. How can I install updated versions?

1 Answer 1

1

Here's how to install current versions of each on your computer.

First, download, build and install the latest version of LibreSSL

cd /usr/local/src (or whatever directory you like to build software in)

sudo apt install -y build-essential checkinstall

curl http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-<version-number>.tar.gz | tar -xzv; cd libressl-<version-number>

./configure --libdir=/lib/x86_64-linux-gnu; make check; sudo checkinstall

Then build OpenSSH against the updated LibreSSL libraries

curl https://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-<version-number>p1.tar.gz | tar -xzv

cd openssh-<version-number>; ./configure --libdir=/lib/x86_64-linux-gnu --with-ssl-dir=/lib/x86_64-linux-gnu --without-zlib


make; sudo checkinstall

Be aware that your openssh binaries will be downgraded anytime there is an 'update' to the Ubuntu openssh package, and you'll have to re-install.

1
  • 1
    To workaround integration problem I'm thinking about creation of snap-package with original OpenSSH/LibreSSL...
    – dess
    Aug 16, 2021 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.