I have installed OpenSSH 7.5p1 on my Raspberry Pi from Debian. I installed it using wget
, the tar -zxvf openssh_7.5p1.orig.ta.gz
, cd openssh_7.5p1
, ./configure
, make
, sudo make install
.
When I do my security scan it says 6.7p1. Command output for:
ssh -V
OpenSSH_7.5p1, OpenSSL 1.0.15t 3 May 2016
and
/usr/bin/ssh -V
OpenSSH_6.7p1, Raspbian-5+deb8u3, OpenSSL 1.0.15t 3 May 2016
When I do sudo dpkg --list openssh*
it shows it using 6.7p1.
I deleted /usr/bin/ssh
and linked it to /usr/local/bin/ssh
. And now it shows:
OpenSSH_7.5p1, OpenSSL 1.0.15t 3 May 2016
But the sudo dpkg --list openssh*
still shows 6.7p1. I need it to scan and see only the 7.5p1.
Running whereis ssh
gives ssh: /usr/bin/ssh /etc/ssh /usr/local/bin/ssh /usr/share/man/man1/ssh.1.vs
and which ssh
shows /usr/local/bin/ssh
Ok I used apt-get purge
to purge all instances of ssh, and reinstalled 7.5p1 as before. 7.5 is still in my /usr/local/bin
. I linked /usr/bin/ssh
to /usr/local/bin/ssh
again. Now when I run sudo dpkg --list openssh*
it show no instance of ssh, and I can't start the ssh service.
Is there anyway to fix this issue?
whereis ssh
,which ssh