ssh_connect
Open an SSH session to a remote host and get a session ID for running commands and managing files through the MCP server.
Instructions
Open an SSH session to a remote host and return a session_id to use with the other ssh_* tools.
Credentials are resolved in this order:
Explicit
password/key_pathargs passed here (avoid when possible)SSH_BRIDGE_PASSWORD / SSH_BRIDGE_KEY_PATH env vars set on the server
The local SSH agent and default keys (~/.ssh/id_ed25519, etc.)
Prefer leaving password/key_path unset and configuring env vars instead — that way the secret never appears in the conversation.
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": {
"host": "<host>",
"username": "<username>"
},
"name": "ssh_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| key_path | No | ||
| password | No | ||
| username | Yes | ||
| key_passphrase | No |