remote_bash_connect
Establish an SSH connection to a remote host, creating a persistent shell session that retains state across subsequent command executions.
Instructions
Connect to a remote host via SSH with a persistent shell session.
Shell state (working directory, environment variables) persists across subsequent remote_bash_execute calls to the same connection.
Args: host: Hostname or IP address. username: SSH username. Defaults to current local username. port: SSH port (default 22). password: SSH password (optional; prefer key-based auth). key_filename: Path to private key file (optional; defaults to SSH agent). connection_id: Optional alias for this connection (default: "user@host:port"). connect_timeout: Timeout in seconds for the connection attempt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| password | No | ||
| username | No | ||
| key_filename | No | ||
| connection_id | No | ||
| connect_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |