Bug#1103773: openssh-server: systemd unit to After=network-online.target
Chris Hofstaedtler <[email protected]>
| Newsgroups | gmane.linux.debian.devel.ssh |
|---|---|
| Message-ID | <gmqgviwwl62jgo4jrl4pklhrwije22gv57btbdnweryhradsqb__48878.4633622103$1745240956$gmane$org@u3ynsvx65vsr> |
* Martin-Éric Racine <[email protected]> [250421 14:42]: >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. network-online.target makes no guarantees on addresses, or even the specific address configured in sshd.conf. If it helps in your local setup, I'd encourage you to use a local override file. Chris