ssh_connect
Connect to a remote host via SSH using password or key-based authentication. Returns a session ID for subsequent commands.
Instructions
Connect to a remote host via SSH. Returns a session_id for use with all other tools. Supports password and key-based authentication.
Args: host: Hostname or IP address of the remote server. username: SSH username (default: root). password: Password for authentication. Leave empty for key-based auth. key_path: Path to SSH private key file. Leave empty for password auth. port: SSH port (default: 22). timeout: Connection timeout in seconds (default: 60).
Returns: Session info dict with session_id, host, and connection status.
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>"
},
"name": "ssh_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| username | No | root | |
| password | No | ||
| key_path | No | ||
| port | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||