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.
| Column | Source |
|---|---|
| Host | Inventory host name (falls back to the target ID) |
| User | Username or email of the session owner |
| Protocol | ssh, rdp, or vnc |
| Status | Session lifecycle state (see below) |
| Duration | Time since the session was created |
| Last active | Relative 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
| Status | Meaning |
|---|---|
pending | Session record created; proxy leg not yet confirmed |
active | Proxy connection established; traffic flowing |
disconnected | Closed gracefully by its owner |
terminated | Force-killed via Terminate |
failed | Connection 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
| Action | Who | Effect |
|---|---|---|
| Disconnect | Session owner only | Graceful close; proxy leg shut down; status disconnected |
| Terminate | Anyone with Update on connection sessions | Forceful 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:
| Setting | Default | Meaning |
|---|---|---|
proxy.ssh_file_transfer.max_upload_bytes | 512 MiB | Maximum upload payload |
proxy.ssh_file_transfer.max_download_bytes | 512 MiB | Maximum download size |
proxy.ssh_file_transfer.max_sidecars_total | 8 | Concurrent file operations per proxy process |
proxy.ssh_file_transfer.max_sidecars_per_session | 2 | Concurrent 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=trueto receive a single archive.
REST API reference
| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/connections/sessions | List sessions (target_id, user_id, protocol, status, limit, offset) |
POST | /api/v1/connections/sessions/{id}/disconnect | Graceful close (owner only) |
POST | /api/v1/connections/sessions/{id}/terminate | Force-terminate |
POST | /api/v1/connections/sessions/{id}/resume | Fresh WebSocket details for an active session (owner only) |
GET | /api/v1/connections/sessions/{id}/files | List a remote directory |
POST | /api/v1/connections/sessions/{id}/files/upload | Upload a file (multipart) |
POST | /api/v1/connections/sessions/{id}/files/mkdir | Create a directory |
GET | /api/v1/connections/sessions/{id}/files/preview | Preview a text file |
POST | /api/v1/connections/sessions/{id}/files/delete | Delete paths |
POST | /api/v1/connections/sessions/{id}/files/move | Move paths |
GET | /api/v1/connections/sessions/{id}/files/download/preflight | Size and kind check before download |
GET | /api/v1/connections/sessions/{id}/files/download | Download a file (archive=true for directories) |
The full contract lives in the generated OpenAPI document — see API reference.