I have a server Ubuntu 14.04 which initially had OpenSSH 6.6 and OpenSSL 1.0.1f installed, and with these commands, i updated openSSH:
sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "https://mirror.edgecast.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
make
sudo make install && sudo service ssh restart && ssh -V
After that, i have an output of:
OpenSSH_7.4p1, OpenSSL 1.0.1f
The thing is that i have updated openSSL separately after that, with these commands:
sudo wget "https://www.openssl.org/source/openssl-1.0.2n.tar.gz"
tar xfz openssl-1.0.2n.tar.gz
cd openssl-1.0.2n/
./config
make
sudo make install
After that, i run: openssl version
and i get:
OpenSSL 1.0.2n
but ssh -V
shows:
OpenSSH_7.4p1, OpenSSL 1.0.1f
Is there a way of having ssh -V returning OpenSSH_7.4p1, OpenSSL 1.0.2n?
Thanks in advance!
2
Answers
As per OpenSSH INSTALL instructions: openssh-portable/INSTALL at V_7_4_P1 · openssh/openssh-portable · GitHub:
Update your OpenSSL
./config
command to include-fPIC no-shared
:You may have to run
make clean && make dclean
before recompiling and installing OpenSSL.System need to know where the new version of openssl is, try :
Then
cd
into openssh directory, clean and rebuild.