0

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?

0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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