Repository navigation
Account Access Controls
A normal sign-in lasts the duration set in Settings → Preferences → Sign-in duration (30 minutes by default, up to 8 hours); Remember me keeps it for seven days. The sign-in ends at that time even while an SSH session is open. Five minutes and one minute before the end, a notice offers Stay signed in. Only that click extends the sign-in, by one sign-in duration from the moment of the click; typing in a terminal or using the page does not. The server accepts an extension only in the last minutes before the end, so a script cannot keep a sign-in open by asking again and again. Extensions stop 12 hours after the password, passkey or provider sign-in that started it; after that the notice asks you to sign in again when the sign-in ends. A Remember me sign-in keeps its seven days and is not extended. Each extension is recorded in the audit log as SESSION_EXTENDED. Closing the notice keeps the original end.
Settings → Security overview lists this account's active server-side browser logins, their authentication methods, start and expiry times, and the current login. The management references shown to the browser are separate from the credentials used to authenticate; session cookies and authentication hashes are not returned.
Revoke login ends one other browser login. Revoke all other logins keeps the current login. Use the existing Sign out action to end the current login. Expired logins are omitted. Recovery sessions cannot manage other logins before repairing their authentication factors.
Revocation removes the selected authentication records and associated step-up state. Existing cookies, including Remember me, cannot recreate them. Attached realtime connections are disconnected, and their transfers, permission jobs and connection attempts are cancelled. Login-bound credential access, manual automation and discovery are revoked. Ongoing HTTP server-operation channels recheck their captured authentication record and stop when it is revoked. Transfer creation and socket admission are serialized against revocation so an already-admitted browser cannot create new resources after the cancellation.
SSH/tmux sessions belong to the account and remain available to its other valid logins. Scheduled automation is also account-owned and is not disabled by revoking a browser. Already-issued remote commands are not rolled back and may continue on the remote system. Interrupted transfers can leave partial files. If live-resource cleanup fails, the login is still revoked and the UI reports that some resources could not be closed; an operator should investigate.
Before disabling an active Passkey, TOTP, OIDC, LDAP or recovery-code feature, the administrator sees affected account and administrator counts, primary-path loss and local MFA-factor loss. Expand the details to identify affected accounts and their remaining configured primary, factor and recovery paths. Locked accounts are listed but omitted from remaining-path totals.
This is a configuration inspection, not a sign-in test. A stored local password does not prove that its owner knows it. A configured provider does not prove availability or external MFA assurance. Recovery codes permit restricted repair, not a substitute unrestricted primary login. Test an alternative login before disabling the current method.
The approval expires after five minutes and is bound to the feature, approving administrator, browser login and account/factor configuration. Saving rechecks that configuration in the same SQLite write transaction as the feature change. If it changed, review the updated impact and authenticate again. Existing deployment/readiness limits and action-bound step-up remain required.
Disabling a feature affects new logins and factor ceremonies. It does not terminate existing browser, SSH or tmux sessions.
The deletion confirmation names the selected account. Deletion revokes its
access and removes the account from the database in one transaction. Before
that, WebSSH writes a verified copy of the account's rows to
DATA_DIR/go/deleted_users/<id>-<UTC>/: one JSON Lines file per table and a
manifest.json with row counts and SHA-256 values, directory mode 0700, files
0600. Sealed secrets stay sealed in the copy. New changes by the account are
refused once the deletion starts. Requests it already sent are allowed to
finish first, and a running automation run, manual or scheduled, is stopped
and stores its outcome first, for up to 30 seconds in all, so none of them
writes after the copy. If they do not finish in time, the deletion fails with "Account data is
temporarily unavailable; retry the operation." If the deletion fails, the
account stays locked. This is retention for recovery, not secure erasure, and no
automatic cleanup is performed. Account IDs are never reused. On an
installation upgraded from 3.3, earlier quarantine directories below
DATA_DIR/deleted_users/ stay untouched until webssh legacy purge.
For later operator cleanup:
- Identify the actual persistent data directory or mounted data volume used by this installation. Match the retained directory to the intended deleted account; inspect its contents and applicable retention requirements.
- Decide whether an offline archive is required. Existing backups and separate archives have their own retention lifecycle and are not erased by account deletion or by this cleanup. Backups never include the copies.
- During a controlled maintenance window, explicitly remove only the verified
directory using the operating system or volume-management tools. Verify the
resolved path remains below
DATA_DIR/go/deleted_users/. Do not remove the database,go/itself or the complete data volume.
The application deliberately provides no automatic purge or browser action for this irreversible operator step.
WebSSH documentation - Project - Issues - Discussions - Security
This Wiki is published from the versioned docs/wiki source. Please propose documentation changes through a pull request.
WebSSH Wiki
Install
- Docker and Docker Compose
- Install on Unraid
- Install in LXC, Incus or Proxmox
- Production Deployment
- Reverse Proxy and Subfolder Deployment
Update
Use WebSSH
- Overview and Dashboard
- SSH Connections and Host Keys
- Profiles, Jump Hosts and Commands
- Terminal and Persistent tmux Sessions
- SFTP and SMB File Workspace and Transfers
- Local Directories
- Automation
- Saved Passwords
- Herdr Integration
- Tailscale SSH
Accounts and sign-in
- Authentication Overview
- Users and Account Management
- Account Access Controls
- Passkeys, Authenticator Apps and Recovery Codes
- OpenID Connect
- GitHub Authentication
- LDAP and Active Directory
Operate
- Health Checks and Troubleshooting
- Backup, Restore and Secret Rotation
- Administration, Audit and Diagnostics
- Configuration Reference
- Data Storage and Persistence
- Security Model and Hardening
Contribute