ssh_connect
Connect to a remote server via SSH by specifying full details for a new connection or using a saved session name to reconnect quickly.
Instructions
Connect to a remote server via SSH. Provide full details for a new server (it will be saved for next time), or just the sessionName to reconnect to a previously saved server.
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": {
"sessionName": "<sessionName>"
},
"name": "ssh_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionName | Yes | Friendly name for this session (e.g. 'production'). If this matches a saved server and no host is given, the saved config is used. | |
| host | No | Hostname or IP address. Omit to connect using a saved server. | |
| port | No | SSH port (default 22) | |
| username | No | SSH username. Omit to use saved server config. | |
| password | No | Password (omit if using key auth) | |
| privateKeyPath | No | Absolute path to a private key file | |
| privateKey | No | Private key contents as a string (not saved to disk) | |
| passphrase | No | Passphrase for the private key, if encrypted |