[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986761: openssh fails to start when using ListenAddress and systemd-network



Package: openssh
Severity: normal
Version: 1:8.4p1-5

Hi,

on systems with multiple interfaces, we tend to use 'ListenAddress' in
sshd_config to ensure that openssh only runs on the local management
interface.

now, with vanilla bullseye systems using ifupdown this works.

once switching to systemd-networkd, this fails. openssh logs the 'cannot
bind to address' error because the (statically configured) IP on the
interface is not up yet.

I guess systemd-networkd reports "network.target" to early that it
completed its stuff (when it has not).

once I remove the ListenAddress, everything works again as usual.

Regards,
Daniel


Reply to: