ssh_exec_script
Executes a multi-line bash script on a remote host via SSH, passing the script through stdin to bash -s. Use for complex server tasks, diagnostics, or batch operations.
Instructions
Execute a multi-line bash script on a connected remote host. The script is passed via stdin to bash -s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Multi-line bash script to execute | |
| timeout | No | Script timeout in milliseconds (default: 60000) | |
| connectionId | Yes | The connection ID |