Debian – Can’t open an SSH session because of OpenSSL version mismatch

apt-getdebianopensslssh

I just ran apt-get upgrade, and according to /var/log/apt/history.log, openssl has been updated to version 1.0.1e-2+rvt+deb7u7. Now I have one SSH session still open, but I can't open another one. I restarted SSH, which returned OpenSSL version mismatch. Built against 1000105f, you have 10001080.
I tried apt-get remove openssl && apt-get install openssl with no luck. I'm running debian on a raspberry pi.

Edit: I should mention that I'm running wheezy, and used the jessie repository to get the latest PHP5 version. I forgot to switch back before apt-get upgrade-ing.

Edit 2: problem solved;

apt-get update
apt-get upgrade
apt-get dist-upgrade

Did the trick (source).

Best Answer

From Stack Overflow:

Try apt-get install openssh-server openssh-client.

I had the same issue when I updated my system to Debian Testing. Even though SSH was already installed, in my case it wasn't pulled in for updating when I ran apt-get update && apt-get upgrade and so the system still had the same SSH binaries with the now-outdated libraries linked against it, hence the version mismatch.

Related Question