2

After upgrading with apt-get upgrade then sshd is not starting at boot

upgrade

apt-get update && apt-get upgrade

error on boot

enter image description here

Have tried to boot in rescue mode and run the following command to update sshd but it doesn't work. After rebooting sshd still fails to load at boot and return the same error about version mismatch

apt-get update && apt-get install openssh-server openssh-client

How to update the openssl version in sshd from rescue mode so the versions match?

6
  • thats exactly what I'm trying to do :) – clarkk Aug 1 '14 at 10:35
  • You had to guarantee that your sshd have the same version as your openssl lib. Use some dpkg -L|grep something, some ldconfig -p|grep -i ssl and such. – peterh - Reinstate Monica Aug 1 '14 at 13:13
  • could you be a bit more specific? – clarkk Aug 1 '14 at 14:09
  • the system is in rescue mode.. – clarkk Aug 1 '14 at 14:17
0

I found a solution

Update openssh from rescue mode

Mounting the hard drive in rescue mode (with software RAID)

# mount /dev/md2 /mnt
# mount -o bind /dev /mnt/dev
# mount -o bind /sys /mnt/sys
# mount -o bind /dev/shm /mnt/dev/shm
# mount -o bind /proc /mnt/proc
# chroot /mnt

Updating openssh

# apt-get update && apt-get install openssh-server openssh-client

Restart the server and the server will boot up in normal mode

Update openssh from a remote console

# apt-get update && apt-get install openssh-server openssh-client

If the ssh server doesn't start, start it

# service ssh start

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.