remote_port_forward_local
Listen on a local port and forward connections to a remote server port, enabling secure local access to remote services like databases.
Instructions
Start a LOCAL port forward (SSH -L style).
Listens on a local port and forwards connections to a port on the remote server.
Example: Access a database running on the remote server:
localPort: 5433
remoteHost: localhost
remotePort: 5432 ā Connect to localhost:5433 to access the remote PostgreSQL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPort | Yes | Local port to listen on | |
| sessionId | No | Session ID (optional) | |
| remoteHost | No | Remote host to forward to (default: localhost) | |
| remotePort | Yes | Remote port to forward to |