ssh_connect
Establish SSH connections to remote servers for executing commands and managing files. Returns a session ID for subsequent operations using password or key authentication.
Instructions
Connect to a remote SSH server. Returns session_id for subsequent commands.
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>",
"auth_mode": "<auth_mode>"
},
"name": "ssh_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address | |
| port | No | SSH port | |
| username | No | SSH username (or set SSH_USER env var) | |
| auth_mode | Yes | Authentication mode | |
| password | No | SSH password (or set SSH_PASSWORD env var) | |
| key_path | No | Path to SSH private key | |
| force_new | No | Force new session even if one exists | |
| timeout_minutes | No | Session inactivity timeout |