ssh_exec
:
Instructions
Execute a command on a remote host via SSH. Returns stdout, stderr, and exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH hostname or IP address | |
| port | No | SSH port (default: 22) | |
| username | No | SSH username (default: current user) | |
| privateKeyPath | No | Path to SSH private key | |
| password | No | SSH password (prefer keys) | |
| command | Yes | Shell command to execute on the remote host | |
| timeout | No | Command timeout in milliseconds (default: 30000) |