create_ssh_session
Open interactive SSH sessions using key or password authentication, with persistent session support and SSH config aliases.
Instructions
Open an interactive SSH session (supports key/password auth and SSH config aliases)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH host IP or hostname | |
| port | No | SSH port (default: 22) | |
| user | Yes | ||
| command | No | Initial command for persistent session (default: /bin/bash) | |
| key_path | No | SSH private key path (default: ~/.ssh/id_ed25519, id_rsa) | |
| log_file | No | File path to append all session output. Useful when output may exceed buffer size (e.g. long-running scripts). File is created if it doesn't exist. | |
| password | No | Optional if using key auth | |
| persistent | No | Use ai-tmux for persistent session (survives SSH disconnect) | |
| session_id | No | Attach to existing ai-tmux session by ID (use list_remote_sessions to find IDs) | |
| log_max_size | No | Max log file size in MB before rotation (0 = no rotation, default: 0) | |
| log_max_files | No | Max number of rotated log files to keep (default: 3) | |
| ignore_host_key | No | Skip known_hosts check (not recommended) |