execute_command
Execute commands on remote SSH hosts using persistent connections. Connect to servers via hostname, IP, or SSH config aliases to run commands and manage remote systems.
Instructions
Execute a command on an SSH host using a persistent session.
The host parameter can be either a hostname/IP or an SSH config alias. If an SSH config alias is provided, configuration will be read from ~/.ssh/config.
Args: host: Hostname, IP address, or SSH config alias (e.g., "myserver") command: Command to execute username: SSH username (optional, will use SSH config or current user) password: Password (optional) key_filename: Path to SSH key file (optional, will use SSH config) port: SSH port (optional, will use SSH config or default 22)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | ||
host | Yes | ||
key_filename | No | ||
password | No | ||
port | No | ||
username | No |