Bug#1103773: openssh-server: systemd unit to After=network-online.target

Timo Weingärtner <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Organization Debian -- The Universal Operating System
Message-ID <3346110.aeNJFYEL58__25195.1097788819$1745260578$gmane$org@timo01.tiwe.de>
Hallo Martin-Éric Racine,

21.04.25 14:38 Martin-Éric Racine:
> Package: openssh-server
> Version: 1:9.9p2-2
> Severity: normal
> X-Debbugs-Cc: [email protected]
> 
> The systemd unit current launches:
> 
> After=network.target remote-fs.target nss-lookup.target
> 
> This doesn't guarantee that we have acquired an IP address (see:
> https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/).
> 
> Because of this, binding to an address using e.g. 'ListenAddress
> 192.168.1.12' will make sshd fail to launch if the interface hasn't
> acquired an IP yet.
> 
> network-online.target should probably be added to the above to positively
> ensure that we've acquired an IP before sshd launches.

You might want to look at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965132

If your problem is not something else needing to bind the same port, 
firewalling might be another solution.


Grüße
Timo
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE87+TxUS8xnavTxo5VO6rSJSm4+0FAmgGi1sACgkQVO6rSJSm
4+3E1w//ZIhzFCM4Ey00uTIsjwVDICEUFQRF1QSlt63pUq5+H8USGGsKjTSWx3Y/
ccjDLBWl6/ehb+C0KIh2jkdog/yQ5uRf0aqChBsF7s/UAXSZ13xFgRaRhsk4CRuM
vOCbv0OAaS8bC7CoYd+E3Gck0hjWeJHwwdj66oDatpYvJb8ICsxwiVAs+ny/iZmd
Tmdf+n/jxMI8NkbI1BAh3ot8PLYh7DGuwd6WecVOHJ7awEDl0SPxxr0SCgd7lQw5
fa1+WK8Ius+sJkP52WBmkZn+dEKzG2/Dt9ER1q84dZlDH/z/O5r2GrN2PplE49FB
kPPX5qRzsBJWs9H+gsyCKbYOOY3GNsRZ17WQYBHuX7J8HA+rCp7WhxySC/p7ZqiH
cbQtKFq38J7X78cYHCeFh3RaZ2dtUmOT5IEtZiiujwM5V7kgVkfSH3mpdxwLHAnn
ZCPobNSIgr9nS0BfPfslOwT7X9FaY7M2YbebEL0O0R/3NzeZ16H/NM/peGBY14cj
inNYAPFmYYxOpDyx1OVl/WxsLmvqsM7m0mPZUzyi0etFMurh8NVTnt+dJo+MX6sJ
2YIr1Ilw3/7uAgzJI/7DM83yGZXgCENtOolyd2dsjQa+8s4GB56NgC7/KLObGWD9
VWzWSjYAJ8XgljUz5keN8YnjG3aEEFXzgag70nUNb/+6q6bfDV8=
=k/yT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.