ssh_session_close
Terminate an active SSH session by its ID: writes exit, ends shell, discards session state. Using 'all' as ID closes all sessions at once.
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) |