ssh_run_script
Execute shell scripts on remote servers over SSH for deployment tasks, piping content directly to bash without local temp files.
Instructions
SSH into a remote host and execute a multi-line shell script. The script content is piped to bash remotely; no temporary files are created locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Remote hostname or IP address | |
| port | No | SSH port (default 22) | |
| script | Yes | Shell script content to execute on the remote host | |
| password | No | SSH password (if not using a key) | |
| username | Yes | SSH username | |
| passphrase | No | Passphrase for the private key | |
| privateKey | No | PEM-encoded private key content | |
| privateKeyPath | No | Path to private key file (e.g. ~/.ssh/id_rsa) | |
| workingDirectory | No | Working directory on the remote host |