Description of problem: The service will starts, before the network setup is completed. Version-Release number of selected component (if applicable): openssh-server-8.7p1-10.el9_0.x86_64 How reproducible: Every time Steps to Reproduce: 1. start the server Actual results: sshd don't come up at the first start, because the binding ip address is nor ready. This comes from the fact, that the network is not complete online at this time. Expected results: That sshd will run. Additional info: Easy fix, change After=network.target sshd-keygen.target to After=network-online.target sshd-keygen.target. That it will starts on its first try.
Dear Frank, Thank you for raising this issue! There are pretty good reasons not to use network-online.target as an universal solution. See the definition of it in https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ It's not a Red Hat specific practice - e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982950 is the similar problem in Debian. https://bugzilla.redhat.com/show_bug.cgi?id=1936538#c22 provides what we consider a proper recommendation for custom setups similar to yours. Hope this helps. *** This bug has been marked as a duplicate of bug 1936538 ***