Upgrading OpenSSH on Ubuntu on AWS from source
I wanted to upgrade my OpenSSH version on a Ubuntu 16.04 server on AWS. I discovered that if you do this with the wrong config options, you might break your SSH installation.
Get Chris Cassano’s stories in your inbox
Join Medium for free to get updates from this writer.
Therefore, I’m providing the procedure that worked for me without breaking anything:
sudo -s
apt update && apt install -y build-essential libssl-dev zlib1g-dev libpam0g libpam0g-dev
cd /usr/local/src
wget https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.7p1.tar.gz
tar -xvf openssh-7.7p1.tar.gz
cd openssh-7.7p1
make clean && make distclean
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam
make
make installFeel free to substitute the OpenSSH version with a newer one, if it exists.
Good luck!





