ssh_exec
Execute commands on remote hosts via SSH and retrieve output. Configure authentication, timeouts, and jump hosts.
Instructions
Run a command on a remote host over SSH and return its output.
host may be an inventory/ssh_config alias or user@host.
known_hosts is strict | accept-new | ignore.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes | ||
| timeout | No | ||
| user | No | ||
| port | No | ||
| key_path | No | ||
| known_hosts | No | ||
| jump | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |