Program that sends traffic through SSH tunnels on-demand https://github.com/crackleware/on-demand-ssh-tunnel

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Predrag Radovic
Maintained by predrg@gmail.com
Example usage:

$ on-demand-ssh-tunnel '[ SSHTunnel 59000 "" ["user@host1", "while true; do date; sleep 60; done"] ]'

When something connects to on-demand-ssh-tunnel will
start ssh subprocess

ssh -v -Lrandom-tunnel-port: -n user@host1

to tunnel communication to VNC server accessible on port 5900 (on host1).
comments powered byDisqus