Skip to main content
On this page

Active sessions

Connections → Active shows live sessions across the instance: user, host, protocol, start time, and proxy node. A user with Read on connection sessions sees all users’ sessions; force-termination requires Update.

The Active view

The table refreshes every 5 seconds (Refresh forces an immediate reload). Rows are sorted by last activity and paginated server-side. Search matches user, host or protocol on the current page.

ColumnSource
HostInventory host name (falls back to the target ID)
UserUsername or email of the session owner
Protocolssh, rdp, or vnc
StatusSession lifecycle state (see below)
DurationTime since the session was created
Last activeRelative time of the last observed activity

Clicking a row opens the detail panel on the right.

Session detail panel

The panel groups session metadata into four sections plus actions:

  • Identity — host, user, email.
  • Network — client IP and the proxy node serving the session (shown when known).
  • Timing — connected-at and last-activity timestamps.
  • Identifiers — full session, target, and user UUIDs with one-click copy buttons.
  • Actions — Disconnect and Terminate.

Session lifecycle

StatusMeaning
pendingSession record created; proxy leg not yet confirmed
activeProxy connection established; traffic flowing
disconnectedClosed gracefully by its owner
terminatedForce-killed via Terminate
failedConnection dropped or never established

The server allows pending to move to any other state and active to move to disconnected, terminated or failed. These end states are terminal; repeated disconnect or terminate calls are no-ops. Each transition records an audit event (connection.session.activated / .disconnected / .terminated / .failed) with the user, target and protocol; see Audit log.

Disconnect vs terminate

ActionWhoEffect
DisconnectSession owner onlyGraceful close; proxy leg shut down; status disconnected
TerminateAnyone with Update on connection sessionsForceful kill; proxy leg shut down; status terminated

Use Terminate to end another user's session; Disconnect applies only to owned sessions. See Access control.

Resume and file tools are owner-only; live session shadowing or attachment is not supported.

Detached session window

Sessions can be detached to a separate browser tab from the session tools menu (Open in new tab) or the header (Detach session). The detached session runs at /connections/detached/<session-id> with tab title <instance> · <host> · <PROTOCOL> · <user>.

Detached tabs re-authenticate via the resume endpoint (owner-only, requires active status and CONNECT permission). Issued WebSocket tokens expire after proxy.ws_token_ttl_seconds (default 120 s).

For SSH, the backend preserves the remote PTY while detached for up to proxy.ssh_detach_grace_seconds (default 60 s). A reaper checks every 5 seconds and closes sessions past that grace period.

SSH file browser

For SSH sessions, the File browser panel (dockable right or bottom) uses the existing authenticated connection. It supports directory navigation, text preview, uploads with progress, downloads (directories as archives), directory creation, moving and multi-select deletion.

File operations require SSH protocol, active session status, ownership, and backend embedded proxy mode. Each request re-checks CONNECT on the target. Resource limits:

SettingDefaultMeaning
proxy.ssh_file_transfer.max_upload_bytes512 MiBMaximum upload payload
proxy.ssh_file_transfer.max_download_bytes512 MiBMaximum download size
proxy.ssh_file_transfer.max_sidecars_total8Concurrent file operations per proxy process
proxy.ssh_file_transfer.max_sidecars_per_session2Concurrent file operations per session

Override via configuration, e.g. PIPING_PROXY__SSH_FILE_TRANSFER__MAX_UPLOAD_BYTES.

Tip: Run the download preflight to check a path's size and kind before transferring; for directories request archive=true to receive a single archive.

REST API reference

MethodPathPurpose
GET/api/v1/connections/sessionsList sessions (target_id, user_id, protocol, status, limit, offset)
POST/api/v1/connections/sessions/{id}/disconnectGraceful close (owner only)
POST/api/v1/connections/sessions/{id}/terminateForce-terminate
POST/api/v1/connections/sessions/{id}/resumeFresh WebSocket details for an active session (owner only)
GET/api/v1/connections/sessions/{id}/filesList a remote directory
POST/api/v1/connections/sessions/{id}/files/uploadUpload a file (multipart)
POST/api/v1/connections/sessions/{id}/files/mkdirCreate a directory
GET/api/v1/connections/sessions/{id}/files/previewPreview a text file
POST/api/v1/connections/sessions/{id}/files/deleteDelete paths
POST/api/v1/connections/sessions/{id}/files/moveMove paths
GET/api/v1/connections/sessions/{id}/files/download/preflightSize and kind check before download
GET/api/v1/connections/sessions/{id}/files/downloadDownload a file (archive=true for directories)

The full contract lives in the generated OpenAPI document — see API reference.