image: improve the autossh behaviour
authorKristof Provost <kp@FreeBSD.org>
Thu, 13 Feb 2025 20:36:14 +0000 (21:36 +0100)
committerKristof Provost <kp@FreeBSD.org>
Thu, 13 Feb 2025 20:36:14 +0000 (21:36 +0100)
commit3dc80342f87699b71df06b34632a73f30db96db6
tree6e05e67e01441c7fcf04a057f4c69616ec5edc20
parentbce8761bd7c04f67185494e132b75729b920f36a
image: improve the autossh behaviour

Poll regularly and occasionally automatically reconnect.
We've seen at least some instances of ssh remaining up but the reverse tunnel
becoming unusable. Hopefully this will improve things.
This can be recovered by terminating the ssh process on kosmos, but reconnection
takes a while.
image/overlay/domotica/etc/rc.d/autossh