Start SSH Port Forward
remote_ssh_start_port_forwardStart an SSH -L tunnel to forward a remote port to a local port via the configured SSH host, keeping the tunnel active for the MCP server's lifetime.
Instructions
Start a local SSH -L tunnel through the configured SSH host. The tunnel stays alive while this MCP server process is alive.
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": {
"localPort": "<localPort>",
"remotePort": "<remotePort>"
},
"name": "remote_ssh_start_port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | SSH hostname or IP address. Overrides REMOTE_SSH_HOST. | |
| localHost | No | Local bind address. Defaults to 127.0.0.1. | |
| localPort | Yes | Local TCP port to bind. | |
| remoteHost | No | Remote destination host. Defaults to 127.0.0.1. | |
| remotePort | Yes | Remote TCP port to connect to from the SSH host. | |
| connectTimeoutSeconds | No |