I am running an OpenVPN server on Ubuntu 14.04 as well as OpenSSH.
I have my SSH server configured to bind to an IP address on my VPN interface. Once my machine boots, binding to that IP fails.
Once I log in, can see with
sshd is not listening. I am able to restart
sshd and the machine will start listening properly. The IP on my VPN is the only IP I have configured
sshd to listen on.
sshd: Set /proc/self/oom_score_adj from 0 to -1000 sshd: error: Bind to port 22 on 10.8.0.1 failed: Cannot assign requested address. sshd: fatal: Cannot bind any address.
sshd: Set /proc/self/oom_score_adj from 0 to -1000 sshd: Server listening on 10.8.0.1 port 22.
My best guess is that
sshd is starting before my VPN is up and running. Is there a way I am able to ensure
sshd starts afterwards so it can bind properly?
Any suggestions about what to do or check?