ssh_connect
Connect to a remote SSH host using password, key, or agent authentication; returns a connection ID that other tools use for subsequent SSH operations.
Instructions
Connect to a remote SSH host. Returns a connectionId used by all other tools.
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>",
"auth": "<auth>"
},
"name": "ssh_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | Yes | Authentication method: password, key, or agent | |
| host | Yes | Remote hostname or IP address | |
| port | No | SSH port (default 22) | |
| timeout | No | Connection timeout in ms (default 10000) | |
| password | No | Password (required when auth="password") | |
| username | Yes | SSH username | |
| passphrase | No | Passphrase for the private key | |
| profileName | No | Load connection params from a saved profile (individual fields override profile values) | |
| privateKeyPath | No | Absolute path to PEM private key file (required when auth="key") |