ssh_exec
Runs commands on remote SSH hosts listed in your SSH config, enabling automated remote administration and troubleshooting from MCP-compatible agents.
Instructions
Execute a command on a remote SSH host. The host must be defined in the SSH configuration.
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": {
"host": "<host>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH host alias from the configuration | |
| command | Yes | Command to execute on the remote host | |
| timeout_ms | No | Command timeout in milliseconds (default: 60000) |