remote_execute
Execute a single command on a remote Linux or Windows host via SSH or WinRM with support for ad-hoc connections, profiles, shell, cwd, environment, and timeout.
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":"..."}. 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 | |||