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

Bug#986761: marked as done (openssh fails to start when using ListenAddress and systemd-network)



Your message dated Thu, 9 Oct 2025 09:37:47 +0200
with message-id <aOdmS0SAB5YImqrO@bongo.bofh.it>
and subject line Re: Bug#986761: openssh fails to start when using ListenAddress and systemd-network
has caused the Debian Bug report #986761,
regarding openssh fails to start when using ListenAddress and systemd-network
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
986761: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986761
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
On Apr 11, Daniel Baumann <daniel.baumann@progress-linux.org> wrote:

I guess systemd-networkd reports "network.target" to early that it
completed its stuff (when it has not).
You need to add a drop-in with:

After=network-online.target

--
ciao,
Marco

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: