ssh_session_close
Terminate an open SSH session by providing its session ID, or close all sessions with 'all'. Exits remote shell, discards session state, but does not delete remote files.
Instructions
Terminates an open SSH session given its session ID, writing exit to the remote shell, ending it, and discarding its in-memory history and context; the session ID becomes unusable afterward. Destructive to session state but does not delete remote files. Passing the literal value all closes every active session at once, ignoring individual close errors. It does not drop the pooled underlying connection, only the interactive shell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session ID to close (or "all" to close all sessions) |