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
  • stackoverflow.com/questions/24096069/…
    – cjc
    Aug 1, 2014 at 10:34
  • thats exactly what I'm trying to do :)
    – clarkk
    Aug 1, 2014 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
    Aug 1, 2014 at 13:13
  • could you be a bit more specific?
    – clarkk
    Aug 1, 2014 at 14:09
  • the system is in rescue mode..
    – clarkk
    Aug 1, 2014 at 14:17

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .