ssh_execute
Execute commands on remote servers via SSH and return the output. Automatic key discovery and connection pooling streamline remote server management.
Instructions
Execute a command on a remote server via SSH and return the output
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH server hostname or IP address (e.g., 'dev234' or '192.168.1.100') | |
| port | No | SSH server port (default: 22) | |
| command | Yes | Command to execute on the remote server | |
| timeout | No | Connection timeout in milliseconds (default: 10000) | |
| password | No | SSH password (only if not using SSH keys) | |
| username | Yes | SSH username (e.g., 'username') | |
| passphrase | No | Passphrase for the private key (if required) | |
| agentForward | No | Enable SSH agent forwarding (default: true) | |
| privateKeyPath | No | Path to SSH private key file (default: ~/.ssh/id_rsa, ~/.ssh/id_ed25519, etc.) |