ssh_exec
Execute shell commands on remote hosts with tiered blast-radius containment and post-flight assertions for ports, processes, and files. Blocks destructive operations unless explicitly confirmed.
Instructions
Execute shell command on remote host with Matlock 3-Tier blast-radius containment and post-flight state assertions (verifies listening ports, process liveness, file existence). Blocks destructive operations unless confirmed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Optional environment variables to pass into remote process. | |
| target | No | Optional SSH connection target. If omitted, uses default profile (homelab). | |
| command | Yes | The exact shell command to execute. | |
| timeoutMs | No | Timeout in ms (default 60000ms). | |
| assertions | No | Optional forensic post-flight assertions. | |
| workingDir | No | Remote directory to cd into prior to command. | |
| confirmDangerToken | No | Must be true to execute Tier 3 destructive operations (e.g. root rm -rf, reboot, mkfs). |