Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
polalavik
· 2y ago · 0 comments
I think this is actually superior to autossh. Doesn’t autossh not restart after crash/reboot?
Comments
[–]
pferde
2y ago
You could run autossh as a systemd service that starts on boot. :-)
[–]
svnt
2y ago
I think you meant this as a joke, but this is what we landed on about a decade ago and it was the most reliable setup we found.
[–]
LaputanMachine
2y ago
It doesn't by default, but you can set the AUTOSSH_GATETIME environment variable to 0 so that autossh retries even if the first connection attempt fails.