Waiting for network
I have a SSH server that needed to bind to a specific IP but apparently it didn’t boot which was quite nasty as it is a headless machine.
The reason was that the network was not ready yet.
sshd: error: Bind to port 22 on x.y.y.z failed: Cannot assign requested address. |
Enabled systemd networkd wait.
systemctl enable systemd-networkd-wait-online.service |
And added this to the /etc/network/interfaces just to be certain
auto eth0
iface eth0 inet dhcp
up service ssh start |
At least I can log in again now…
Categories: Uncategorized