🔐 WebSSH

Secure SSH client that runs entirely in your browser

🌟 Key Features

🔐 Secure Authentication

JWT-based login with configurable session timeout and encrypted storage of passwords and SSH keys.

🌐 Multiple Connections

Connect to multiple SSH servers simultaneously with easy switching between them.

📁 SFTP File Manager

Full-featured file manager with drag & drop upload, download, and file operations.

💾 Persistent Data

Encrypted storage of credentials across container restarts.

📊 Upload Limits

Configurable maximum file size (supports formats like "30M", "100M", "1G").

🎥 Session Recording

Automatic recording of SSH sessions in asciinema format with playback and configurable retention period.

🎨 Modern Interface

Responsive design with dark/light theme and intuitive controls.

🚀 Quick Start

  1. Open your browser and go to http://localhost:8080
  2. Create the administrator on first start, or sign in with an existing account
  3. Create a connection by clicking "+ New Connection" and entering SSH server details
  4. Connect by clicking on the created connection
  5. Open terminal and start working with the remote server
  6. Use SFTP for file operations by clicking the "SFTP" button
  7. Open Settings to change your password or import and export connections. Administrators can also manage users and administrator archives.

🔄 Connection Import and Export

The controls in Settings export and import only the connections and groups belonging to the currently signed-in account. They are separate from the administrator archive described below.

Export options

Import

  1. Choose Settings → Import Connections and select a JSON archive.
  2. Confirm the import in WebSSH. For an encrypted archive, enter the original passphrase first, then confirm.
  3. Imported connections receive new IDs and belong to the currently signed-in account. Saved credentials are encrypted with this installation's key.

Use HTTPS for encrypted export/import when accessing WebSSH remotely; localhost is allowed. Keep encrypted archives and their passphrases separate.

👥 Administrator Archive

Administrators can use Settings → Export Administrator Archive or Import Administrator Archive to transfer accounts, roles, connection metadata and groups. The default unencrypted archive excludes host passwords and SSH keys, but contains sensitive account and host details and must be protected. To include saved host passwords and SSH keys, select the encrypted archive option and provide a separate passphrase of 12–1024 UTF-8 bytes. The entire archive uses scrypt and AES-256-GCM. Store the passphrase separately; it cannot be recovered. Imported credentials are encrypted with the destination installation's key.

Neither archive includes account login passwords or hashes, recordings or installation secrets. There are currently no separately stored application-wide settings to import; deployment settings remain separate. This is not a full application backup. Version 3 includes orphaned connection data under virtual owners; versions 1 and 2 can still be imported.

  1. Choose Merge (default) or Replace, select an archive and review the accounts, roles, connection counts and conflicts. Merge skips existing accounts and names with data left over from deleted accounts.
  2. Replace removes all other accounts, groups and connections, even if absent from the archive. Your administrator account and its connections and existing virtual-owner data remain. Old recordings are isolated from restored accounts; files remain subject to normal retention. Replacement requires explicit confirmation and a local database backup.
  3. Explicitly allow creation of new administrator accounts if needed; otherwise those accounts are skipped. Confirm the import. Merge never overwrites existing accounts or roles.
  4. Deliver the displayed temporary passwords securely. They are shown only once; each new user must change theirs at first login. If a password or the result is lost, check which accounts were created and reset their passwords using the password-reset tool.

Imported connections receive new IDs. Connections from metadata-only archives need their credentials entered again. Encrypted archives require their passphrase for import. The import is atomic. If conflicts change after preview, select and review the archive again. Remote browser access requires HTTPS; localhost is allowed. Archives are limited to 100 accounts, 100 virtual owners, 1,000 groups and 1,000 connections, plus the configured upload-size limit.

The automatic database backup contains sensitive account and credential data and must be protected. It excludes the encryption key and recording files, which must be backed up separately. See the README for recovery instructions and deployment configuration.

Settings → Manage Users → Orphaned Data lists data without a login account. Deleting a user isolates their data under a virtual owner. Existing unassigned data can be isolated, archived, or have its connections and groups deleted after confirmation; deleting connections and groups does not delete recordings. Use View Recordings to delete individual recordings and their files after confirmation. Recordings stay local under normal retention and are not exported. Virtual and unassigned connections and groups are included in full exports; a selected owner can also be exported separately. Imported virtual connections are appended, so repeated imports can create duplicates; groups are merged by name. Virtual owners cannot log in.

Settings → Manage Users → Unindexed Recording Files lists .cast.gz files in the standard recordings directory structure that have no database metadata. Review the relative path, modification time and size, then select Delete → Confirm delete file to delete a file permanently. Active and indexed recordings are excluded. Use Refresh if a file changed or became active or indexed after the list was loaded. Unindexed files are not removed by normal retention or included in archives. Deleting a recording cleans up its empty parent directories, but not the recordings root; existing empty directories are not cleaned up separately.

🎥 Session Recordings

When recording is enabled, SSH sessions are automatically recorded in asciinema format. The sidebar shows recordings belonging to the signed-in account. To view recordings:

  1. Click "Recordings" button in the left sidebar
  2. Browse the list of recorded sessions (shows connection name, date, and duration)
  3. Click ▶ Play to replay the recording in the embedded player
  4. Download the recording as .cast.gz file for local storage
  5. Delete old recordings to free up space

Indexed recordings are kept for a configurable period (default 30 days) and automatically deleted after that. Files without database metadata require separate administrator review as described above.

⌨️ Keyboard Shortcuts

🖥️ Terminal:

Copy Ctrl+C
Paste Ctrl+V
New Terminal Ctrl+T
Close Tab Ctrl+W

📁 SFTP File Manager:

Refresh F5
Delete Delete
Rename F2
Upload Ctrl+U

🔧 Configuration

MAX_UPLOAD_SIZE: Maximum file size (supports formats):

WEBSSH_USERS: Optional one-time import in format username:password,username2:password2. The first imported user becomes an administrator, the rest have the user role, and all imported users must change their password at first login. Remove this variable after the import.

On a fresh installation without imported users, use the first-start form to create the administrator. New passwords must contain at least 12 characters.

Use Settings → Change Password to change your password with your current password. Other sessions are signed out, and active SSH and SFTP sessions are disconnected.

Administrators can create and delete accounts using Settings → Manage Users. New accounts must change their temporary password at first login.

JWT_SECRET: Secret key for JWT tokens (auto-generated if not set)

RECORDING_ENABLED: Enable/disable session recording (true or false)

RECORDING_RETENTION_DAYS: Number of days to keep recordings (default: 30)

📡 Installation Telemetry

Starting with version 0.5.0, WebSSH collects limited installation telemetry to understand active installations and deployed versions.

The telemetry contains only a randomly generated installation ID, WebSSH version, operating system, operating system version, CPU architecture, and Python runtime information.

Telemetry is enabled by default. To disable it, set the following environment variable:

STRIX_TELEMETRY_ENABLED=false

WebSSH does not send hostnames, usernames, IP addresses, SSH credentials, private keys, commands, terminal contents, or filesystem data.

🔒 Auto-Lock & Auto-Disconnect

WebSSH can automatically lock sessions after a period of inactivity and require your WebSSH password to unlock. Sessions can also be automatically disconnected after a longer period.

🛠️ Troubleshooting

⚠️ Common Issues:

  • Connection refused: Check if SSH server is running and port is open
  • Authentication failed: Check username and password
  • File too large: Increase MAX_UPLOAD_SIZE in docker-compose.yml
  • 401 Unauthorized: Refresh the page and login again
  • Slow connection: Check internet connection and network settings

🔒 Security

Encryption: All passwords and SSH keys are encrypted with AES-128 (Fernet).

JWT Tokens: Sessions are managed with JWT tokens with configurable timeout.

Docker Isolation: The application runs in an isolated Docker environment.

HTTPS: Recommended to use HTTPS in production environment.