Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
Debian12
openssh-server 1:9.2p1-2+deb12u5 arm64
sshd starts before the ethernet interface gets an IP address.
With
ListenAddress 192.168.0.2
in
/etc/ssh/sshd_config
Result
error: Bind to port 22 failed: Cannot assign requested address.
systemctl edit sshd.service
and inserting the following:
[Unit]
After=network-online.target
does not help.
* What outcome did you expect instead?
sshd active after reboot when ListenAddress is set in sshd_config
*** End of the template - remove these template lines ***