Documentation ¶
Overview ¶
sshtunnel is daemon for setting up forward and reverse SSH tunnels.
The daemon is started by executing sshtunnel with the path to a JSON configuration file. The configuration takes the following form:
{ "KeyFiles": ["/path/to/key.priv"], "KnownHostFiles": ["/path/to/known_hosts"], "Tunnels": [{ // Forward tunnel (locally binded socket proxies to remote target). "Tunnel": "bind_address:port -> dial_address:port", "Server": "user@host:port", }, { // Reverse tunnel (remotely binded socket proxies to local target). "Tunnel": "dial_address:port <- bind_address:port", "Server": "user@host:port", }], }
See the TunnelConfig struct for more details.
Click to show internal directories.
Click to hide internal directories.