mostly fixes
[distro-setup] / filesystem / etc / systemd / system / ssh.service.d / override.conf
1 # This is very strange. perhaps the initramfs ssh daemon was still
2 # holding open the port somehow.
3 #
4 # Apr 26 07:26:32 x2 systemd[1]: Starting OpenBSD Secure Shell server...
5 # Apr 26 07:26:33 x2 sshd[1256]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
6 # Apr 26 07:26:33 x2 sshd[1256]: error: Bind to port 22 on :: failed: Address already in use.
7 # Apr 26 07:26:33 x2 sshd[1256]: fatal: Cannot bind any address.
8 # Apr 26 07:26:33 x2 systemd[1]: ssh.service: Main process exited, code=exited, status=255/EXCEPTION
9 # Apr 26 07:26:33 x2 systemd[1]: ssh.service: Failed with result 'exit-code'.
10 # Apr 26 07:26:33 x2 systemd[1]: Failed to start OpenBSD Secure Shell server.
11
12 [Unit]
13 StartLimitIntervalSec=0
14
15 [Service]
16 Restart=always
17 RestartSec=20
18
19 ExecStopPost=+/usr/bin/ss -lpn state listening sport = 22