ssh_execute
Run shell commands across multiple SSH hosts simultaneously and retrieve results from each, simplifying remote server administration.
Instructions
Execute a command on one or more SSH hosts. Runs concurrently on multiple hosts and returns results from each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | SSH port for direct connection (default: 22) | |
| hosts | Yes | List of host names (from ssh_list_hosts) or IP addresses/hostnames to execute on | |
| command | Yes | The shell command to execute | |
| timeout | No | Connection timeout in milliseconds (default: 30000) | |
| password | No | SSH password for direct connection (use with caution) | |
| username | No | SSH username for direct connection (overrides config) | |
| privateKeyPath | No | Path to SSH private key file for direct connection |