There are a few servers spread around the globe who reverse ssh into a jumpbox to expose certain ports. The autossh process is usually evoked on these boxes at the startup using rc.local
Here are the some behaviors that we noticed :
- If the jumpbox is down at the client startup, the startup sequence is blocked at autossh.
- Tried to use a screen session at the startup and pushed the autossh session into it. autossh exits after the timeout and we have to wait indefinitely till the client restarts to get the connection back.
Isn't autossh suppose to be fire and forget? Any tips as to wrap the autossh to invoke if not running?