Skip to content

bifroest session disconnect

Closes all SSH connections currently associated with the selected session, including their channels and forwarding connections. The session remains valid and its environment and authorization are not disposed. New connections may reuse it under the normal session rules.

Syntax

bifroest @target session disconnect [flags] <id>

Arguments

id

Required session UUID from session ls, not an SSH connection or Recording ID. A missing session, an ID found in multiple flows, or the session executing this management command produces an error before any connections are closed.

Flags

Includes general flags supported in the selected invocation mode. Local --configuration is not available.

--format

string = "table"

Result format: table, json, yaml or cbor. A successful result contains id, flow and action: disconnect.

Examples

1
2
bifroest @bifroest-admin session disconnect SESSION_UUID
ssh management@bifroest.example.org 'session disconnect SESSION_UUID --format=json'

Requires access.sessions.disconnect in the management flow. It permits disconnection across flows without granting sessions.read. The action is audited in the management flow and target flow according to their audit configuration. Disconnecting a session with no current connections succeeds without changing its lifecycle state.

To revoke a session and run its configured cleanup instead, use session dispose.

Availability

linux darwin windows
/ / /

Invocation modes

Local CLI @target Direct SSH