To update OpenSSH in Ubuntu 18 LTS to version 8, I followed these steps: https://unix.stackexchange.com/a/598842/392505
I now see the desired version when I run ssh -V
OpenSSH_8.0p1, OpenSSL 1.1.1 11 Sep 2018
But if I run sshd -V
I see the old version:
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
Do I need to take some additional actions so I see the proper version when I check the version with sshd?
PATH
? by default, the./configure
script usesPREFIX=/usr/local
so whether you find the old or new version of the ssh client depends on the order of/usr/local/bin
versus/usr/bin
, whereas for sshd it will depend on the order of/usr/local/sbin
versus/usr/sbin
. Also make sure the "old" value is not hashed by your shell (ex. bashhash -r
). – steeldriver Mar 17 '21 at 13:47