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.
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 | |||