ssh_sudo_exec
Run sudo commands on remote hosts via SSH with configurable host, key, user, port, and timeout.
Instructions
Execute a shell command with sudo on a remote host via SSH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Provide a configured key shortcut or a full path to the private key file (supports a leading ~ for the home directory). | |
| host | Yes | IP address or hostname of the remote server | |
| port | No | SSH port (default: 22) | |
| user | No | SSH username (default: root) | root |
| command | Yes | Shell command to execute with sudo (do not include 'sudo' prefix) | |
| timeout | No | Timeout in milliseconds (default: 60000) |