ssh_execute
Execute shell commands on remote servers via SSH using saved connection aliases or explicit host, user, and port.
Instructions
Execute a command on a remote server via SSH. Uses SSH config from connections.json (connection's ssh section). Provide either a connection alias (to use saved SSH config) or explicit host/user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute remotely | |
| connection | No | Connection alias (uses its SSH config) | |
| host | No | SSH host (if not using connection alias) | |
| user | No | SSH user (if not using connection alias) | |
| port | No | SSH port | |
| timeout | No | Command timeout in seconds | |
| forward_agent | No | Forward SSH agent to remote (for GitHub auth without storing keys) |