ssh_tunnel_close
Close an active SSH tunnel by ID or terminate all tunnels for a server, freeing bound local ports.
Instructions
Tears down active SSH tunnels created earlier, freeing the bound local ports; this affects only local tunnel state, not the remote host. Exactly one of tunnelId or server must be supplied: tunnelId closes that single tunnel, while server closes every tunnel for the named server and reports how many were closed. Supplying neither raises an error. Closing is final and cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Close all tunnels for this server | |
| tunnelId | No | Tunnel ID to close |