ssh_multi_exec
Run a shell command across multiple SSH hosts simultaneously, showing per-host results for easy comparison.
Instructions
Execute a command on multiple remote hosts in parallel. Returns results per host. Use this instead of calling ssh_exec multiple times — it's faster and shows results side by side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes | List of SSH hostnames or IPs | |
| command | Yes | Shell command to execute on all hosts | |
| port | No | SSH port (default: 22) | |
| username | No | SSH username (default: current user) | |
| privateKeyPath | No | Path to SSH private key | |
| password | No | SSH password. STRONGLY prefer key-based auth (privateKeyPath or ssh-agent). Passwords pass through MCP protocol frames as plaintext and may be logged by the transport or host process. | |
| timeout | No | Command timeout in milliseconds (default: 30000) |