ssh_connect
Connect to a remote Linux host via SSH with a named session. Automatically caches credentials for reconnection.
Instructions
Connect to a remote Linux host via SSH and create a named session.
If a session with the same name exists, it will be disconnected first. Credentials are automatically cached for future reconnection.
Args: host: Linux server IP address or hostname username: SSH username (default: root) password: SSH password (leave empty if using key_path) key_path: Path to SSH private key file (alternative to password) port: SSH port number (default: 22) session_name: Name for this session, e.g. 'prod', 'staging' (default: 'default')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| key_path | No | ||
| password | No | ||
| username | No | root | |
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |