@hackage / on-demand-ssh-tunnel

Program that sends traffic through SSH tunnels on-demand

Latest0.1.0.6

About

Metadata

  • Last updated , by pedja
  • License MIT
  • Categories Network Development
  • Maintained by: predrg@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

Example usage:

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

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

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

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