ssh_forward_local
Opens a local port forward so connections to localhost:localPort travel through an SSH tunnel to remoteHost:remotePort, enabling access to remote services.
Instructions
Open a local port forward: connections to localhost:localPort are forwarded through the SSH tunnel to remoteHost:remotePort.
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": {
"connectionId": "<connectionId>",
"localPort": "<localPort>",
"remoteHost": "<remoteHost>",
"remotePort": "<remotePort>"
},
"name": "ssh_forward_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localHost | No | Local address to bind (default "127.0.0.1") | |
| localPort | Yes | Local port to listen on | |
| remoteHost | Yes | Destination host as seen from the SSH server | |
| remotePort | Yes | Destination port on the remote host | |
| connectionId | Yes | Connection ID from ssh_connect |