ssh_execute
Run shell commands on remote SSH servers. Returns stdout, stderr, and exit code with automatic connection reuse.
Instructions
Execute a command on a remote SSH server.
Runs the given shell command on the specified server and returns stdout, stderr, and exit code. Connections are established automatically and reused.
EXAMPLES:
Run command: ssh_execute("proxmox", "uptime")
With timeout: ssh_execute("truenas", "zpool status", timeout=60)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_name | Yes | Server name to execute on (from ssh_list_servers) | |
| command | Yes | Shell command to execute | |
| timeout | No | Command timeout in seconds (default: 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||