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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hosts": "<hosts>",
"command": "<command>"
},
"name": "ssh_execute"
}
}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 |