ssh_session_send
Execute a command in an active SSH session, reusing the session's working directory and environment. Provide a session ID from starting a session.
Instructions
Runs one command inside an already-open session identified by its session ID, reusing the persisted working directory, environment, and history of that shell. Mutates remote state like any shell command and is not idempotent; cd and export update the saved context for subsequent calls. Commands run through a bash-style shell (Unix-oriented). The security policy of the underlying server is enforced, so readonly or restricted servers may refuse. Default timeout is 30000 ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session ID from ssh_session_start | |
| command | Yes | Command to execute in the session | |
| timeout | No | Command timeout in milliseconds (default: 30000) |