GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Architecture and Runtime Lifecycle Architecture and Runtime Lifecycle
github-actions[bot] edited this page
WebSSH is a Flask application with authenticated HTTP and Socket.IO interfaces, Paramiko SSH/SFTP channels, SQLite persistence, and a bounded threaded runtime.
Browsers do not connect directly to SSH targets through a hidden peer-to-peer path. WebSSH terminates the authenticated application session, checks ownership and policy, and then opens the server-side SSH or SFTP connection. Bulk file content is streamed over HTTP. Socket.IO carries terminal traffic, control events, and bounded editor content rather than whole bulk-transfer payloads.
Production uses: gunicorn --worker-class gthread --workers 1 --threads 64 \ --bind 0.0.0.0:5000 start:app Exactly one worker is supported. Live Paramiko objects, session coordination, and parts of resource admission are process-local. Multiple workers would create isolated views of live state and can violate ownership, quota, cleanup, and routing assumptions. Redis-backed rate limiting externalizes counters only. It does not externalize SSH channels or turn the application into a multi-worker architecture.
The default is 64 threads and 48 sockets, with at most eight sockets per user. Socket.IO uses native threading and simple-websocket; Eventlet, greenlets, and monkey patching are not part of the supported runtime.
SSH connections belong to an authenticated user and consume quotas. Paramiko channels are created through existing helpers with timeouts and cancellation. Quick SFTP connections used by the file workspace remain alive while queued or active transfers still reference them, then disconnect when ownership can safely end. Persistent tmux metadata survives a browser disconnect, but the underlying remote tmux session lives on the SSH server. WebSSH's local connection objects do not survive a process restart. On shutdown WebSSH:
Readiness reports failure once the runtime is no longer accepting work. Keep the proxy/load-balancer drain period aligned with Restore operations enter maintenance mode before replacing persistent state. The frontend uses vanilla JavaScript and CSS without a build-time application framework. Browser libraries are pinned in
WebSSH documentation - Project - Issues - Discussions - Security This Wiki is published from the versioned WebSSH Wiki Install and operate
Identity and access
SSH and files
Reference and administration Clone this wiki locally |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |