Home > Uncategorized > Waiting for network

Waiting for network

December 14th, 2017 Leave a comment Go to comments

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 Tags:
  1. No comments yet.
  1. No trackbacks yet.

Time limit is exhausted. Please reload CAPTCHA.