ssh_execute
Execute shell commands on remote servers via SSH, returning stdout, stderr, and exit codes with configurable working directories and timeouts.
Instructions
Runs a shell command over SSH on a named configured server and returns stdout, stderr, and exit code. Mutates remote state depending on the command; not read-only. Expands command aliases before running. Uses the cwd parameter or, if omitted, the server configured default directory; adapts syntax for Linux versus Windows PowerShell targets. Timeout defaults to 120000 ms and is capped at 300000 ms. Under readonly mode destructive commands like rm or dd are refused; under restricted mode the command must match allow patterns. Output is truncated when very large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name from configuration | |
| command | Yes | Command to execute | |
| cwd | No | Working directory (optional, uses default if configured) | |
| timeout | No | Command timeout in milliseconds (default: 120000, max: 300000) |