ssh_restart_port_forward
Restart an active port forward using its unique ID.
How to use it
ssh_restart_port_forward is exposed by the Ssh MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the ssh_restart_port_forward tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Ssh MCP Server
npm install -g @uarlouski/ssh-mcp-serverOther tools in Ssh MCP Server (26)
(string, required): Command to execute
(number, optional): Command execution timeout in milliseconds (overrides global commandTimeout)
(string, required): Name of the server from your config
(string, required): Unique ID of the active port forward to close
(string, required): Local file path to upload
(number, optional): Local port to bind to (random if omitted)
(string, optional): Glob pattern to filter files (e.g., ".log", ".json")
(string, optional): File permissions in octal format (e.g., "0644", "0755")
(string, required): Remote host to forward to
(string, required): Remote destination path
(number, required): Remote port to forward to
(string, required): Name of the service from portForwardingServices config
Close an active port forward.
Delete a file on the remote server via SFTP.
Download a file from remote server to local system via SFTP.
Execute commands on remote servers.
Execute a pre-configured command template with variable substitution.
List all active port forwards across all connections.
List files in a remote directory via SFTP.
List all available SSH servers configured in your config file.
List all available command templates with their descriptions and variables.
Set up SSH port forwarding to access remote services.
Start a pre-configured named port forwarding service from your config.
Upload a file from local system to remote server via SFTP.
(string, required): Name of the command template
(object, optional): Key-value pairs for variable substitution