ssh_exec
Run commands on a remote SSH server and get stdout, stderr, and exit code.
Instructions
Execute a command on a connected SSH server. Returns stdout, stderr, and exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the command | |
| env | No | Environment variables as key-value pairs | |
| pty | No | Allocate a PTY for the command (useful for interactive commands) | |
| command | Yes | Command to execute on the remote server | |
| sessionId | Yes | Session ID from ssh_connect |