WebSSH: Self-Hosted SSH and SFTP in Your Browser

You can connect to a server over SSH from any computer with a terminal. But sometimes all you have is someone else’s laptop, a tablet or a phone, while your keys and server list stay at home. Or your team has dozens of servers, and you would rather keep connections, keys and access rights in one place than in every employee’s ~/.ssh/config.
That is what web SSH clients are for. WebSSH is one of the most thoughtfully built new projects in this space: not just a terminal in a browser tab but a full workspace with SFTP, a command library, scheduled automation and a serious security model. You can install it on your own VPS as a single Docker container.
What WebSSH is
WebSSH is a self-hosted SSH and SFTP workspace that runs in the browser. It is released under the permissive Apache 2.0 licence, collects no telemetry and doesn’t depend on any external cloud services: accounts, keys, host fingerprints and the audit log stay on your server. All browser libraries ship with the application, with nothing loaded from a CDN.
Here is the home page, an overview of servers, sessions and automation results:

The project started in January 2026 and reached its third major version by the end of November. The current server is written in Python (Flask, Paramiko, Socket.IO), the image is published for linux/amd64 and linux/arm64, and there is an Unraid template.
Features
Terminal
- multiple SSH sessions in tabs and 1-, 2- or 4-pane layouts;
- saved connections, jump hosts, key and password sign-in, MFA through PAM on the server and Tailscale SSH;
- per-host SOCKS5 proxies;
- persistent sessions through tmux: close the tab and the command keeps running on the server;
- broadcast input to several sessions, terminal search, session transcripts;
- server resource, process, systemd service and Docker container monitoring next to the terminal;
- notes tied to a server;
- 11 themes and Nerd Font typefaces.
There is even an integration with Herdr, a terminal manager for AI agents: WebSSH shows the agents running on connected servers.
Files
- an SFTP file manager with one or two panes;
- uploads, downloads, previews and text file editing;
- before saving, edits are shown as a diff against the original, and you can download the original;
- server-to-server file copying with a transfer queue;
- optional access to SMB 3.1.1 shares and Unix permission changes.
Commands and automation
- a command library with favourites and command sets, which are sequences of steps with parameters;
- running commands and sets on a cron schedule on individual servers or whole groups (an administrator enables automation separately, and it only works over HTTPS);
- discovery of SSH servers in a subnet you specify, with a prefilled new-host form;
- a “Needs attention” section: unverified host keys, unreachable jump hosts, failed runs.
Users and security
- multiple users with separate profiles, keys, files and trusted hosts;
- passkeys, authenticator apps (TOTP) and recovery codes;
- sign-in through OIDC, GitHub and LDAP/Active Directory;
- encrypted storage of private SSH keys;
- per-user host key fingerprint verification;
- an audit log with export, rate limiting, CSRF protection;
- backup and restore from the admin interface.
How WebSSH differs from the alternatives
| WebSSH | Termix | Nexterm | Sshwifty | Apache Guacamole | |
|---|---|---|---|---|---|
| Protocols | SSH, SFTP, SMB | SSH, tunnels, files | SSH, VNC, RDP | SSH, Telnet | SSH, VNC, RDP, Telnet |
| Licence | Apache 2.0 | Apache 2.0 | MIT | AGPL-3.0 | Apache 2.0 |
| GitHub stars | ~350 | ~16,000 | ~5,200 | ~3,100 | ~4,100 |
If you need Windows remote desktop over RDP, look at Guacamole or Nexterm. Sshwifty is a minimalist web terminal without accounts or key storage. Termix is the most popular project in this niche. WebSSH stands out for its attention to security: a dedicated production profile that refuses to start with unsafe settings, blocking of connections to internal addresses, re-confirmation of identity for sensitive actions and detailed threat-model documentation.
Installing WebSSH on a VPS
You need a Linux VPS with Docker and Docker Compose 2.24.4 or newer (see our guide for installing Docker), plus a domain name such as ssh.example.com with an A record pointing at the server’s IP address.
Step 1. Compose files
mkdir -p /opt/webssh && cd /opt/webssh
curl -O https://raw.githubusercontent.com/bifrost0x/webssh/main/docker-compose.yml
curl -O https://raw.githubusercontent.com/bifrost0x/webssh/main/docker-compose.production.yml
The second file is the production overlay. It binds the application to 127.0.0.1:5000, turns on secure cookies, closes registration and blocks SSH connections to internal addresses.
Step 2. Public address
Create a .env file next to them with the address you will open WebSSH at:
echo "WEBSSH_ORIGIN=https://ssh.example.com" > .env
Check the final configuration and start it:
docker compose -f docker-compose.yml -f docker-compose.production.yml config
docker compose -f docker-compose.yml -f docker-compose.production.yml up -d
With the production profile, WebSSH validates its settings at startup and refuses to run if something is unsafe, for example a missing address or open registration. If the container doesn’t start, the reason is in the logs:
docker compose -f docker-compose.yml -f docker-compose.production.yml logs webssh
Step 3. Reverse proxy and HTTPS
The proxy must obtain a certificate, pass the Host and X-Forwarded-Proto headers and support WebSocket, which the terminal runs on. Caddy is the easiest, as it needs no extra settings for this. The /etc/caddy/Caddyfile file:
ssh.example.com {
reverse_proxy 127.0.0.1:5000
}
Nginx Proxy Manager works too; just turn on WebSocket support in the proxy host.
Step 4. Administrator
Browser registration is disabled in production, so the first administrator is created with a command on the server:
docker compose -f docker-compose.yml -f docker-compose.production.yml exec webssh /app/entrypoint.sh flask --app start:app create-admin --username admin
The command asks for a password. Then open https://ssh.example.com, sign in and set up a second factor in the Security Center right away. To sign in with passkeys, add the WEBAUTHN_ENABLED=true, WEBAUTHN_RP_ID=ssh.example.com and WEBAUTHN_ORIGIN=https://ssh.example.com variables to docker-compose.yml and recreate the container.
Connecting to servers on an internal network
The production profile blocks connections to private addresses (10.0.0.0/8, 192.168.0.0/16 and similar) so that WebSSH can’t be used to reach internal infrastructure. If the servers you manage are on a private network, list the allowed subnets in .env:
echo "SSH_ALLOWED_INTERNAL_NETWORKS=10.20.0.0/16" >> .env
Every such connection is recorded in the audit log. Loopback and cloud metadata addresses stay unreachable in any case.
Updates and backups
The standard Compose file uses the latest tag. For predictable updates, pin the image version, for example ghcr.io/bifrost0x/webssh:3.3, and take the Compose files from the same release. Before updating, make a backup in the admin interface. Note that backups don’t include saved passwords and SSH keys; after a restore you have to import them again. Keep backups encrypted and off the server, for example in separate storage.
cd /opt/webssh && docker compose -f docker-compose.yml -f docker-compose.production.yml pull && docker compose -f docker-compose.yml -f docker-compose.production.yml up -d
How to secure WebSSH
A web SSH client puts the keys to all your servers in one place. So:
- open WebSSH over HTTPS only, and ideally only through a VPN;
- turn on passkeys or TOTP for every user;
- check host key fingerprints on first connection and investigate unexpected changes;
- keep a local administrator account even when signing in through OIDC or LDAP, in case the external provider is down;
- protect the target servers themselves: changing the SSH port, Fail2Ban and two-factor SSH authentication still matter.
Pros and cons
Pros:
- a full workspace: terminal, files, commands, monitoring and notes in one window;
- a serious approach to security and detailed documentation;
- multiple users, passkeys, OIDC and LDAP for free;
- scheduled automation;
- a convenient interface on the phone;
- the permissive Apache 2.0 licence, no telemetry.
Cons:
- SSH, SFTP and SMB only, no RDP or VNC;
- the project is young and small compared with Termix and Guacamole;
- a server rewrite in Go is coming, so installation and settings may change;
- only a single worker process is supported, with no horizontal scaling.
Frequently asked questions
Is WebSSH free?
Yes. The project is released under the Apache 2.0 licence with no paid editions. You can support the developer through GitHub Sponsors, Patreon or Buy Me a Coffee.
Where are my SSH keys stored?
On your WebSSH server, in the webssh_data volume, encrypted. The project has no external servers that traffic or keys would pass through. But WebSSH is not end-to-end encrypted: the server it runs on sees terminal input and output, so it must be protected as carefully as the servers themselves.
Can I use WebSSH from a phone?
Yes, the interface adapts to small screens, and the terminal has a separate compact mode on phones.
Why is WebSSH better than a regular SSH client?
For a single administrator on their own laptop, it isn’t: a regular terminal is more convenient. WebSSH helps when you need access from any device without installing software, when a team uses the servers and needs shared access rules and auditing, or when you want to run commands on groups of servers on a schedule.
Does WebSSH support connecting through a bastion?
Yes, through jump hosts and SOCKS5 proxies. The home page shows which servers are reachable directly and which go through an intermediate host.


