Your SSH workspace, in the browser.
Persistent terminals · Built-in SFTP · Self-hosted
English · 简体中文
Termivane brings SSH terminals and remote file management into one browser workspace. Open multiple connections, move files alongside your terminal, and recover running sessions after a page refresh.
This is the Larry Labs fork of nirui/sshwifty, with persistent sessions, integrated SFTP, and a customized terminal interface. It focuses on SSH; Telnet has been removed from this fork.
Termivane combines terminal and vane: a point of direction for remote work. The sshwifty executable, SSHWIFTY_* settings, and browser storage keys retain their existing names for compatibility.
Actual application running against a local, in-memory test server. No production hosts, files, or credentials are shown.
| Capability | What it does |
|---|---|
| Persistent sessions | Keeps SSH sessions on the server and restores multiple tabs after a browser refresh. |
| Integrated file management | Browse directories, upload and download files, and create or delete directories from the SFTP panel. |
| Terminal experience | 256-color PTY, adjustable font size, Unicode streaming, and up to 999,999 lines of browser scrollback. |
| Clipboard with consent | OSC 52 copy requests require one-time or per-terminal permission. Permission can be revoked; remote clipboard reads are disabled. |
| Authentication choices | Password, private key, and keyboard-interactive authentication, including multiple challenge rounds. |
| Connection resilience | TCP keepalive, WebSocket heartbeats, SFTP reconnects, and adaptive upload throttling. |
| Desktop and mobile | Responsive terminal layout, touch controls, and persistent font preferences. |
Sessions live in the server process. The current implementation has a 12-hour lifetime from session creation and retains the latest 64 KiB of output for replay after refresh. Browser scrollback and server replay history are separate limits. Restarting the server ends its SSH sessions.
Password and private-key SFTP transfers use an independent SSH connection pinned to the host key accepted by the terminal. Keyboard-interactive sessions open SFTP on the existing authenticated transport, so one-time answers are not replayed.
- Go 1.27.3 or later
- Node.js 22 or later, with npm
- Git and Bash; Windows users can use WSL
git clone https://github.com/Larry-Labs/Termivane.git
cd Termivane
npm ci
npm run buildThe build generates frontend assets, embeds them in Go, and produces ./sshwifty.
# Enter a Web access password without recording it in shell history.
read -r -s -p 'Web access password: ' SSHWIFTY_SHAREDKEY
printf '\n'
export SSHWIFTY_SHAREDKEY
SSHWIFTY_LISTENINTERFACE=127.0.0.1 \
SSHWIFTY_LISTENPORT=8182 \
./sshwiftyRun the example in Bash, then open http://localhost:8182. The Web access password protects the application entrance; SSH authentication still happens separately for each remote host.
For access from another device, serve the application over HTTPS. Browser cryptography requires a secure context; plain HTTP is suitable for localhost, not a public deployment.
The repository includes a source-build Dockerfile and a lightweight deployment Dockerfile. The lightweight path packages a locally built Linux binary:
npm run build # Refresh assets after source changes
./build-deploy.sh linux amd64See the deployment guide for image builds, Compose configuration, TLS, reverse proxies, and the ARM filename adjustment. Build a binary from your chosen checkout rather than assuming a checked-in binary matches its source.
Use environment variables or a JSON file selected with SSHWIFTY_CONFIG. The configuration example describes the full configuration shape.
| Setting | Purpose |
|---|---|
SSHWIFTY_SHAREDKEY |
Web access password. An empty value disables the entrance password. |
SSHWIFTY_LISTENINTERFACE |
Address on which the application listens. |
SSHWIFTY_LISTENPORT |
HTTP or HTTPS listen port. |
SSHWIFTY_DIALTIMEOUT |
Outbound SSH connection timeout, in seconds. |
SSHWIFTY_READTIMEOUT / SSHWIFTY_WRITETIMEOUT |
Connection I/O timeout settings; these do not set the persistent-session lifetime. |
SSHWIFTY_PRESETS |
JSON-encoded connection presets. |
Configuration-file and environment loading are alternative configuration sources, not a per-field merge. See deployment before combining them.
- Verify SSH fingerprints. Independent SFTP connections must match the key accepted for the terminal.
- Choose password storage deliberately. “Remember Password” saves an obfuscated value in browser local storage. It is not an encrypted vault and is readable by same-origin scripts. Avoid it on shared or untrusted browsers.
- Treat the service as a gateway to your hosts. It connects from the deployment server's network and keeps SSH session state in process memory. Restrict access to the application and use HTTPS.
- Plan for updates. This fork retains Vue 2, and dependency audit findings remain. The integration record records the tested dependency set and known limits; it is not a security certification.
npm ci
npm run build
npm run lint
npm run testonlytestonly runs the frontend unit tests and Go tests with the race detector. Go race tests require CGO and a supported C toolchain. npm run dev watches frontend assets; it does not start or restart the Go service.
The local SSH/SFTP fixture supports browser checks without real server credentials or host filesystem access. See CONTRIBUTING.md for change and validation guidance.
- Deployment — builds, configuration, reverse proxies, and HTTPS.
- Architecture — terminal streams, SFTP transport, and session lifecycle.
- Selective upstream integration — adopted changes, verification, and compatibility limits.
- Browser test fixture — local SSH, SFTP, Unicode, and clipboard checks.
The deployment and architecture guides are currently in Chinese; the fixture guide is in English.
Based on Sshwifty, created by Ni Rui. Fork enhancements are maintained in Larry-Labs/Termivane.
Licensed under the GNU Affero General Public License v3. See LICENSE.md. Third-party notices are listed in DEPENDENCIES.md; dependency versions are recorded in go.mod and package-lock.json.
