ssh_forward_remote
Open a remote port forward so an SSH server listens on a chosen remote port and forwards incoming connections to a local host and port on the MCP host.
Instructions
Open a remote port forward: the SSH server listens on remotePort and forwards connections back to localHost:localPort on the MCP host.
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>",
"remotePort": "<remotePort>",
"localHost": "<localHost>",
"localPort": "<localPort>"
},
"name": "ssh_forward_remote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localHost | Yes | Local host to forward traffic to | |
| localPort | Yes | Local port to forward traffic to | |
| remotePort | Yes | Port the SSH server should listen on | |
| connectionId | Yes | Connection ID from ssh_connect | |
| remoteBindAddr | No | Address the SSH server binds (default "127.0.0.1") |