Sshwifty
Sshwifty is a SSH and Telnet connector made for the Web.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
Sshwifty is an SSH and Telnet client designed for the web (WebSSH / WebTelnet). It lets users access SSH and Telnet services on remote hosts right from the browser. The project is open source under the AGPL-3.0 license. The backend is written in Go, and the frontend is built with Node.js / npm. An official online demo is available at sshwifty-demo.nirui.org.
Key Features
- SSH / Telnet in the browser: Open a web page to connect to a remote host. Supports
xterm-256colorand a clipboard plugin. - Multiple SSH authentication methods: Supports private key, password, and Keyboard Interactive authentication, and verifies the host public key fingerprint.
- Access password protection: Use
SharedKeyto set an access password for the web interface. If it isn't set, access is public. - Remote presets (Presets): Administrators can predefine frequently used hosts, including title, type, address, tag color, username, encoding, private key, and fingerprint. Presets appear in the "Known remotes" tab of the connection window. Field values can be read from text, a file (
file://), or an environment variable (environment://). - Restricting connection targets: When
OnlyAllowPresetRemotesis enabled, only preset hosts can be connected to, and all other addresses are rejected. - SOCKS5 proxy: The backend can connect to remote hosts through a SOCKS5 proxy, with support for username and password authentication.
- Server-side hooks (Hooks): Run an external program before a connection is initiated (
before_connecting). If the hook exits with a non-zero status, the connection is aborted. This can be used for auditing, access control, and more. - Multi-port listening and TLS: Can serve on multiple ports at the same time, and can be configured with a TLS certificate to enable HTTPS.
- Home page message: A short server message, with support for links, can be displayed on the home page.
- Mobile-friendly: The console toolbar has common key combinations built in, which makes it easier to use on a phone and also helps work around shortcut conflicts.
Target Users and Use Cases
- Operations staff and developers who need to manage servers from anywhere through a browser
- Accessing remote hosts from devices where an SSH client can't be installed (such as public computers, tablets, and phones)
- Setting up a web-based jump host to centrally manage the list of hosts a team can access
- Accessing Telnet devices and traditional services such as BBSs and public Unix shells
Installation and Deployment
Docker (officially recommended)
docker run --detach \
--restart unless-stopped \
--publish 8182:8182 \
--name sshwifty \
niruix/sshwifty:latest
Note that the image name is niruix/sshwifty (with an x). If you only want to access it from the local machine, change the port mapping to 127.0.0.1:8182:8182 and then expose the service through a reverse proxy. You can import certificates directly with the SSHWIFTY_DOCKER_TLSCERT and SSHWIFTY_DOCKER_TLSCERTKEY environment variables. The repository also includes an example file, docker-compose.example.yaml.
Prebuilt binaries
Download the executable for your platform from the GitHub Releases page and run it. These files are produced by an automated process, and the author has not tested each one individually.
Building from source
Requires git, node/npm, and go:
git clone https://github.com/nirui/sshwifty
cd sshwifty
npm install
npm run build
macOS users can also install it with a third-party maintained Homebrew formula.
Configuration
You can use a JSON configuration file (specify its path with SSHWIFTY_CONFIG), or configure it with the SSHWIFTY_* series of environment variables. When configuring with environment variables, only one HTTP server can run, and OnlyAllowPresetRemotes is not supported.
Technical Requirements and Notes
- Time synchronization: The transport protocol uses the time on both ends to generate encryption keys, so the system clocks of both the client and the server must be accurate. Synchronizing with NTP is recommended.
- HTTPS required: The frontend relies on the WebCrypto API, which browsers generally only provide in secure contexts, so accessing it over HTTPS is recommended (enabling it on the reverse proxy or on Sshwifty itself both work).
- Subpath deployment not supported: By design, it needs a hostname of its own so that the browser can isolate locally stored user data.
- Preset data is not encrypted: Preset contents are sent to the client as-is, so don't put sensitive information in them.
- Project status: This is the author's hobby project and is currently in maintenance mode. Only bugs and security issues are fixed, no new features are added, and Pull Requests are not accepted.
Discover more
Cardea
Cardea is an SSH bastion server with access control, session recording, and optional TPM-backed key protection.
Engity's Bifröst
Highly customizable SSH server with several ways to authorize a user and options where and how to execute a user's session.
Pangolin
Modern networking and security platform providing secure access and connectivity to apps, infrastructure, and AI workloads. Connect and protect your users.
RustDesk
Remote Desktop Access software that works out-of-the-box (alternative to TeamViewer).
Coder
Remote development machines on your own infrastructure.
Donetick
Task and chore management tool for personal and family use, with advanced scheduling, flexible assignment, and group sharing capabilities, detailed history, automation via API, simple and modern design.