Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This should be the accepted answer, because the accepted answer solution doesn't work. Commented Mar 9, 2021 at 11:39
  • Additional info I used while implementing this answer. To add the Unit/Wants/After, use sudo systemctl edit sshd.service which will create an override.conf file in /etc/systemd/system/ssh.service.d To know which is the right wait service for your system, first see which underlying service is running systemctl NetworkManager status and systemctl status systemd-networkd and then check this is-enabled output to make sure the right one is enabled. Commented Jan 11, 2024 at 0:17