Skip to main content

Web-based SSH terminal that works behind any reverse proxy

Project description

Torrus

Torrus

A web-based SSH terminal that works behind any reverse proxy. Install it, run it, use it.

Features

  • Web-based SSH terminal with full xterm.js emulation
  • Multi-tab support — open multiple SSH sessions side by side, close all at once
  • Tab management — right-click to rename, clone, duplicate, or save a tab as a session
  • Keyboard shortcutsCtrl+T new tab, Ctrl+W close tab, Ctrl+Tab cycle tabs, Ctrl+, settings
  • Saved servers — save, edit, import, and export connection configs
  • Works behind reverse proxies — uses Socket.IO for reliable transport
  • Session sidebar — quick-connect to saved servers
  • LDAP/AD authentication — optional, via ldapgate

Install

pip install torrus

Usage

torrus serve

Opens the terminal in your browser. Connect to any SSH server from there.

Options:

--host TEXT          Bind host. [default: 127.0.0.1]
--port INTEGER       Bind port. [default: 8080]
--no-browser         Don't open the browser automatically.
--ldap-config PATH   Path to ldapgate YAML config to enable LDAP authentication.

LDAP Authentication

Torrus can require users to log in via LDAP/AD before accessing the terminal. This uses ldapgate as FastAPI middleware — no separate proxy process needed.

pip install 'torrus[ldap]'
torrus serve --ldap-config /path/to/ldapgate.yaml

When LDAP is enabled, a logout button appears in the top-right corner of the tab bar.

See the ldapgate README for config file documentation.

Terminal input audit

LDAP deployments persist every raw terminal-input chunk, including individual keystrokes and pasted text. It intentionally does not record terminal output or the password supplied while opening an SSH connection. Audit data is stored at ~/.local/share/torrus/audit.db by default (or TORRUS_AUDIT_DB when set).

torrus audit show --user alice
torrus audit purge --older-than 90

audit show escapes control characters so viewing an event cannot replay its terminal escape sequences. Restrict access to the audit database: raw input may include commands, secrets pasted at a prompt, and other sensitive content.

Development

Requires uv.

git clone https://github.com/anudeepd/torrus
cd torrus
uv sync
make dev

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torrus-0.1.34.tar.gz (581.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torrus-0.1.34-py3-none-any.whl (564.8 kB view details)

Uploaded Python 3

File details

Details for the file torrus-0.1.34.tar.gz.

File metadata

  • Download URL: torrus-0.1.34.tar.gz
  • Upload date:
  • Size: 581.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for torrus-0.1.34.tar.gz
Algorithm Hash digest
SHA256 cb76381989e5b1a73adf83c7bf2be9f5644729387cf19b7217f82c4e3c4893dc
MD5 c665cbf2b318a1c2dd8873d028beee61
BLAKE2b-256 089b371b395ae2628cbc7116124e663ce66a377a240c5fa5f1fcd1a9bad24d63

See more details on using hashes here.

File details

Details for the file torrus-0.1.34-py3-none-any.whl.

File metadata

  • Download URL: torrus-0.1.34-py3-none-any.whl
  • Upload date:
  • Size: 564.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for torrus-0.1.34-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8d92e20962f9cbad56664c77b7908639310c6ba32de184791c9f8dbe7352ac
MD5 687cfcfc4f8b7bb35aab8183a0f8744c
BLAKE2b-256 991803796d2903d34b513102ac5bfacf920a308c95926929787093b916549505

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page