*Network is unreachable* when `ssh` on `crontab` `reboot`
On work Wi-Fi on my Debian 12 GNOME work laptop:
crontab
:
@reboot autossh -NR 2224:localhost:22 benjamin@XXX.XXX.XXX.XXX > stdout.txt 2> stderr.txt
Same with ssh
.
stderr.txt
:
ssh: connect to host XXX.XXX.XXX.XXX port 22: Network is unreachable
stdout.txt
is empty.
ps aux | grep '[s]sh'
Output:
root 1440 0.0 0.0 15432 8948 ? Ss 10:12 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
benjami+ 2770 0.0 0.0 7684 772 ? Ss 10:13 0:00 /usr/bin/ssh-agent /usr/bin/im-launch /usr/bin/gnome-session
benjami+ 2846 0.0 0.0 88380 5528 ? Ssl 10:13 0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr
Related to Benjamin-Loison/DNSUpdater/issues/8.
Edited by Benjamin Loison