Optionalpolicy: Pick<PolicyEngine, "assertAllowed">Records that an operation is starting on a session. Prevents cleanup/eviction from removing the session while busy.
Closes all active sessions
Closes an SSH session
Destroys the session manager, cleaning up all sessions and intervals
Records that an operation on a session has completed. Must be called in a finally block paired with beginOperation.
Returns information about all active non-expired non-closing sessions.
Gets cached OS info for a session (detects and caches if needed)
Gets session with auto-reconnect if disconnected
Checks if a session is alive by executing a simple command
Opens a new SSH session with authentication
Session manager with LRU cache and TTL