Below is the error I get. However the service works at boot if InternetAddress is commented out or set to 0.0.0.0. The service works manually ( /etc/init.d/ssh start) -- Subject: A start job for unit ssh.service has begun execution -- A start job for unit ssh.service has begun execution. Sep 27 10:52:31 nat6pub sshd[690]: error: Bind to port 2022 on x.x.x.x failed: Cannot assign requested address. Sep 27 10:52:31 nat6pub sshd[690]: fatal: Cannot bind any address. Sep 27 10:52:31 nat6pub systemd[1]: ssh.service: Main process exited, code=exited, status=255/EXCEPTION -- An ExecStart= process belonging to unit ssh.service has exited. Sep 27 10:52:31 nat6pub systemd[1]: ssh.service: Failed with result 'exit-code'. -- The unit ssh.service has entered the 'failed' state with result 'exit-code'. -- Subject: A start job for unit ssh.service has failed -- A start job for unit ssh.service has finished with a failure. -- Subject: A start job for unit ssh.service has begun execution -- A start job for unit ssh.service has begun execution. -- Subject: A start job for unit ssh.service has finished successfully -- A start job for unit ssh.service has finished successfully.
On Thu, Sep 26, 2019 at 6:23 PM Roberto C. Sánchez <robe...@debian.org> wrote: > On Thu, Sep 26, 2019 at 05:34:02PM -0400, yoda woya wrote: > > when I use this, the binding fails: > > Port 2022 > > #AddressFamily any > > ListenAddress x.x.x.x > > #ListenAddress :: > > but if I do , it binds it to the ip on boot > > Port 2022 > > #AddressFamily any > > #ListenAddress x.x.x > > #ListenAddress :: > > How can i fix this. I want sshd to run only on this one IP > > What is the exact error message when it fails? > > Regards, > > -Roberto > -- > Roberto C. Sánchez > >