ssh borked after upgrade

Kernels & Hardware, configuring network, installing services

ssh borked after upgrade

Postby Jethro_UK » 2017-12-13 10:37

With tiresome predictability, the last kernel upgrade has borked my system.

This time it's SSH not starting.

Code: Select all
Executing /etc/init.d/ssh status ..
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-12-13 10:46:06 GMT; 2s ago
  Process: 6985 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)

Dec 13 10:46:05 DebServer64 systemd[1]: ssh.service: Control process exited, code=exited status=255
Dec 13 10:46:05 DebServer64 systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec 13 10:46:05 DebServer64 systemd[1]: ssh.service: Unit entered failed state.
Dec 13 10:46:05 DebServer64 systemd[1]: ssh.service: Failed with result 'exit-code'.
Dec 13 10:46:06 DebServer64 systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Dec 13 10:46:06 DebServer64 systemd[1]: Stopped OpenBSD Secure Shell server.
Dec 13 10:46:06 DebServer64 systemd[1]: ssh.service: Start request repeated too quickly.
Dec 13 10:46:06 DebServer64 systemd[1]: Failed to start OpenBSD Secure Shell server.
Dec 13 10:46:06 DebServer64 systemd[1]: ssh.service: Unit entered failed state.
Dec 13 10:46:06 DebServer64 systemd[1]: ssh.service: Failed with result 'exit-code'.


Preliminary googling suggests disabling service "ssh" and enabling "ssh.socket". But now I'm getting SSH errors when I try to connect from clients that had no problem, before.

Anyone ?


p.s. seems startx is ****ed too.
Jethro_UK
 
Posts: 7
Joined: 2014-08-12 09:31

Re: ssh borked after upgrade

Postby Jethro_UK » 2017-12-13 10:51

OK, getting somewhere.

service "ssh.socket" needs to be disabled

you need to create a directory /run/sshd

you can then start service "ssh" and connect.

And then switch to something which doesn't need 20 minutes of TLC after every kernel upgrade.
Jethro_UK
 
Posts: 7
Joined: 2014-08-12 09:31

Re: ssh borked after upgrade

Postby Segfault » 2017-12-13 12:51

Isn't systemd wonderful.
Segfault
 
Posts: 664
Joined: 2005-09-24 12:24


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable