How can I use to solve the problem:

"ssh.service has "After=network.target", and network.target only waits
for interfaces marked as "auto" to come up."



On Fri, Sep 27, 2019 at 11:26 AM Greg Wooledge <wool...@eeg.ccf.org> wrote:

> On Fri, Sep 27, 2019 at 11:16:51AM -0400, yoda woya wrote:
> > 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
>
> Sounds like the x.x.x.x address doesn't exist at the time ssh.service
> is trying to run.  The most likely reasons for this are that your x.x.x.x
> address is assigned to an interface that's configured later in the boot
> process (e.g. a wireless interface), or that it's assigned to an
> interface which is marked as "allow-hotplug" rather than "auto" in
> /etc/network/interfaces.
>
> ssh.service has "After=network.target", and network.target only waits
> for interfaces marked as "auto" to come up.  If that.
>
>

Reply via email to