Any scripts to create tunnel?
Has anyone here written any scripts that can open/manage a tunnel?
I'm looking for some scripts that allows me to open a list of tunnels (maybe from a configuration file) and then it manages it by detecting if the tunnel is still active/usable and create a new one if needed.
I'm doing this manually by
ssh -v -g -L localport:targetserver:targetport gateserver:gateport cat -
if i do this:
ssh -v -g <b>-f</b> -L localport:targetserver:targetport gateserver:gateport cat -
it dies almost immediately...
If anyone here has some scripts that are able to perform something like this, hope you can share with me.