Back to services

WeTTY

Terminal in browser over http/https.

View alternatives to WeTTY
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: The official website (https://butlerx.github.io/wetty/#/) is a documentation site loaded dynamically with JavaScript. This time only the title "WeTTY = Web + TTY" was captured, not the body text. The content below is compiled from existing knowledge of the project, so please check the official documentation and the GitHub repository before deploying.

Introduction

WeTTY is an open-source web terminal. Its name comes from Web + TTY. It provides a full terminal in the browser, and the backend can connect to a target host over SSH or call the local login program directly. Unlike early web terminals such as Ajaxterm and Anyterm, it communicates over WebSocket and its interface is built on xterm.js, so it responds faster and its display is closer to a native terminal.

Key Features

  • Terminal access in the browser: Open a web page to use the command line of a remote server, with no separate SSH client to install.
  • SSH and local login: You can specify the SSH host, port, user and authentication method; when running as root, you can also use local login.
  • Based on xterm.js: Supports colors, cursor control, and full-screen terminal programs such as vim and htop.
  • HTTPS support: You can configure an SSL certificate and private key for encrypted access.
  • Customizable access path: You can set the listening port and URL prefix (usually /wetty by default), which makes it easy to place behind a reverse proxy such as Nginx or Apache.

Who It's For

  • Operations staff and developers who want to manage servers from a browser at any time
  • Users on restricted networks or public computers who can only reach servers through a browser
  • Teams that want to embed a terminal in an internal platform, lab environment or teaching platform

Installation and Deployment

Install globally with npm or yarn (requires a Node.js environment):

npm -g i wetty
# or
yarn global add wetty

wetty --ssh-host <目标主机> --port 3000

Once it has started, open http://<server address>:3000/wetty in your browser.

Deploy with Docker: The project provides an official container image, which suits containerized environments and deployment together with a reverse proxy. For the specific image name and parameters, see the official documentation.

Technical Requirements

  • Node.js runtime (required for the npm installation method)
  • Network access to the target SSH server
  • In production, it is recommended to use it with HTTPS or a reverse proxy

Notable Characteristics

  • Open-source project, hosted on GitHub (butlerx/wetty)
  • Lightweight and simple to deploy; a single command is enough to start it
  • Exposing a terminal on the web carries security risks, so it is recommended to add HTTPS, reverse proxy authentication or access control