close-session
End an active SSH session by name. Gracefully stops background commands (INT→TERM→KILL) or exits the interactive shell, ensuring remote processes are cleanly terminated.
Instructions
Close a named session. A background session's command is signalled on the host (INT, then TERM, then KILL) before its channel is dropped; an interactive session's shell is ended. The response says so if the command could not be signalled or had not stopped in time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Session name to close | |
| profile | No | Profile name |