We've seen the reverse ssh connection become unusable after some time.
It's assumed this happens because NAT and/or firewall states along the path
time out as there's no traffic. Explicitly enable both SSH and TCP keepalive
mechanisms to avoid this.
"AUTOSSH_POLL=120 AUTOSSH_MAXLIFETIME=28800 \
autossh -M 0 -p 2207 -N -R ${control_port}:localhost:22 \
-R ${http_port}:localhost:8123 \
+ -o ServerAliveCountMax=6 \
+ -o ServerAliveInterval=15 \
+ -o TCPKeepAlive=yes \
-o ExitOnForwardFailure=yes \
domotica@kosmos.sigsegv.be"
}