ssh_tunnel
Start a persistent local port-forward over SSH to map a local port to a remote service; it stays open until stopped and returns the tunnel ID and local URL.
Instructions
Start a persistent local port-forward through the pooled SSH connection for host, e.g. forward local port 8080 to snow:80. The tunnel stays open until ssh_tunnel_stop is called. Returns the tunnel id and the local URL to use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH config alias to tunnel through | |
| localHost | No | Local bind address | 127.0.0.1 |
| localPort | Yes | Local port to listen on (0 = random) | |
| remoteHost | No | Destination host from the SSH server's perspective | 127.0.0.1 |
| remotePort | Yes | Destination port |