ssh fails when you dist-upgrade to debian testing


There seems to be a bug in the process somewhere that prevents SSH from being upgraded properly, so when you run apt-get dist-upgrade, ssh is removed, and you lose your server.

The solution is simple, after running dist-upgrade, and BEFORE disconnecting from SSH, run:

dpkg -i –force-all /var/cache/apt/archives/openssh*

and then

aptitude dist-upgrade 

This forces ssh to install, and fixes your problems.

Leave a Reply