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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host": "<host>",
"localPort": "<localPort>",
"remotePort": "<remotePort>"
},
"name": "ssh_tunnel"
}
}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 |