ssh_exec
Run a shell command on a managed host over SSH to inspect or change its OS, gated by operator approval.
Instructions
Run a command on the managed host's OS over SSH. DESTRUCTIVE / in-band.
Gated by its own SSH effect gate (never the HID gate) + per-invocation
approval, with typed same-path denials (#234). host overrides the
profile/env ssh_host at runtime (e.g. a discovered install-time DHCP
address).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Override the profile's ssh_host for this call only, e.g. an install-time DHCP address the profile cannot know yet. | |
| command | Yes | Shell command line to run on the managed host as the profile's SSH user. | |
| confirm | No | Per-invocation approval when the client cannot prompt a human: set true to approve this exact call under the operator's standing policy. Leave false when the client supports elicitation (a human is asked). Never pre-set it speculatively; a denial returns outcome=not_confirmed. | |
| profile | No | Profile name from ~/.config/kvm-pilot/config.toml selecting which KVM/BMC (and its managed host) this call targets. Omit to use the server's default (KVM_PILOT_PROFILE). |