Race condition sshd and networking KUbuntu 22.04 LTS
by rclark from LinuxQuestions.org on (#6CDB5)
Appears that either a race condition going on or sshd (ssh server)is getting started before networking is enabled. I assigned sshd in the config to bind to a specific IP addr (manual server IP) as I have two network cards and only want one to get sshd traffic. But when I boot, sshd crashes with no IP found. Yet if I login and then from the command line restart sshd it works fine, so I know I setup config correctly.
For now I just removed that IP binding in the config file, to allow it to work through a reboot and all is well. I run headless and hate to hook up a monitor and keyboard to restart. Also I unplug the other cable from the card that connects to the internet, so ssh is not a security hole from the internet anyway except for a short period of time when I plug in and get an distro update.
Anyway, just a informational post and if someone may have an idea what I could do about it.
For now I just removed that IP binding in the config file, to allow it to work through a reboot and all is well. I run headless and hate to hook up a monitor and keyboard to restart. Also I unplug the other cable from the card that connects to the internet, so ssh is not a security hole from the internet anyway except for a short period of time when I plug in and get an distro update.
Anyway, just a informational post and if someone may have an idea what I could do about it.