remote_execute
Execute a single command on remote Linux or Windows hosts over short-lived SSH or WinRM connections, using a saved profile or an ad-hoc target.
Instructions
Execute one command using a short-lived SSH or WinRM connection.
connection may override a profile or fully describe an ad-hoc target, for example: {"protocol":"ssh","host":"server","username":"root","password":"..."}. For self-signed WinRM HTTPS use ssl=true and cert_validation=false. WinRM shell may be powershell or cmd. SSH executes through the remote user's shell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| shell | No | auto | |
| command | Yes | ||
| profile | No | ||
| timeout | No | ||
| connection | No | ||
| output_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||