ssh_exec
Execute shell commands on remote servers via SSH. Specify host, command, and optional credentials for secure remote execution.
Instructions
Execute a shell command 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 on the remote server | |
| timeout | No | Timeout in milliseconds (default: 60000) |