{"slug": "show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client", "title": "Show HN: Wwwet – web based webauthn and SSH and et client", "summary": "A developer released wwwet, a browser-based SSH and Eternal Terminal client that authenticates directly to a stock OpenSSH sshd using native WebAuthn hardware keys (ES256 / P-256, sk-ecdsa-sha2-nistp256@openssh.com) with no custom server code. The static TypeScript PWA runs against stock sshd, etserver and websockify behind a file server such as Caddy, terminating SSH (curve25519-sha256 / aes256-gcm@openssh.com) and Eternal Terminal (xsalsa20poly1305) encryption inside the browser, and it keeps sessions alive across network switches, sleep/wake and flaky mobile connections via Eternal Terminal roaming. Private keys never leave the authenticator, and the project advises users to pin the SSH host key fingerprint and serve over HTTPS with strict Content Security Policy headers.", "body_md": "A direct browser SSH + [Eternal Terminal](https://eternalterminal.dev/) client\nwith native WebAuthn hardware key authentication — and zero custom server code.\n\nIn a world of long-running coding agents and remote dev boxes, you often want\nto check in on a `tmux` session (or [tiri](https://github.com/blmarket/tiri))\nfrom devices outside your main workstation — like a Chromebook, tablet, or\nphone where native Eternal Terminal isn't available.\n\nMost web-based SSH tools force you to run a custom backend that terminates SSH\non the server side (introducing a trusted middleman) and/or drop your session\nthe moment Wi-Fi blinks. `wwwet` avoids both:\n\n- **Zero custom server code** — Runs against stock`sshd` ,`etserver` ,\nand`websockify` behind a static file server like Caddy.\n- **Hardware-backed auth directly to `sshd`** — Uses native OpenSSH` webauthn-sk-ecdsa-sha2-nistp256@openssh.com` (`ES256` / P-256). Private keys\nnever leave your security key or device secure enclave.\n- **True end-to-end encryption** — Both SSH (`curve25519-sha256` /`aes256-gcm@openssh.com` ) and Eternal Terminal (`xsalsa20poly1305` ) terminate\ninside the browser.`websockify` is just a dumb TCP-to-WebSocket pipe.\n- **Session roaming** — Backed by Eternal Terminal, so sessions survive network\nswitches, sleep/wake cycles, and flaky mobile connections.\n- **Lightweight static PWA** — Pure TypeScript + WebCrypto +`xterm.js` (no\nheavy Go/C WASM runtime), installable as a standalone web app.\n\nSee [docs/market-comparison.md](https://github.com/blmarket/wwwet/blob/main/docs/market-comparison.md) for a detailed\ncomparison against `sshterm`, Chrome Secure Shell (` nassh`), Teleport,\nCloudflare Access, Tailscale SSH, and self-hosted web terminals.\n\n```\nflowchart LR\n  subgraph Browser[\"Browser (Static PWA)\"]\n    UI[\"xterm.js\"]\n    SSH[\"SSH-2 Client<br/>(WebCrypto + WebAuthn)\"]\n    ET[\"ET Client<br/>(XSalsa20-Poly1305)\"]\n    Key[\"FIDO2 / Passkey<br/>(P-256)\"]\n    Key -.->|Signs SSH userauth| SSH\n    UI <--> ET\n  end\n\n  subgraph Server[\"Your Server (Stock Services Only)\"]\n    Caddy[\"Caddy (HTTPS + Static Assets)\"]\n    WS[\"websockify (WS ↔ TCP)\"]\n    SSHD[\"sshd :22\"]\n    ETD[\"etserver :2022\"]\n    Caddy -->|/ws| WS\n    WS -->|localhost-ssh| SSHD\n    WS -->|localhost-et| ETD\n  end\n\n  SSH ==>|\"1. Auth & bootstrap etterminal\"| Caddy\n  ET ==>|\"2. Roaming encrypted terminal\"| Caddy\n```\n\n1. **Register once** : Generate a P-256 WebAuthn credential in the browser and\npaste the resulting`sk-ecdsa-sha2-nistp256@openssh.com` line into`~/.ssh/authorized_keys` on your server.\n2. **SSH bootstrap** : On connect,`wwwet` opens an E2E-encrypted SSH-2\nconnection through`websockify` to`sshd` , verifies your pinned host key\nfingerprint, authenticates with your hardware key, and launches`etterminal` to obtain a one-time session ID and passkey.\n3. **Roaming terminal** :`wwwet` disconnects SSH and attaches directly to`etserver` over a second WebSocket. If your network drops, Eternal Terminal\nautomatically reconnects and catches up seamlessly.\n\n`wwwet` requires a WebAuthn authenticator supporting P-256 (`ES256`, OpenSSH's\n`sk-ecdsa-sha2-nistp256@openssh.com`). Private keys never leave your\nauthenticator, and `sshd` cryptographically verifies the hardware signature on\nevery new session bootstrap.\n\n**Best practices you should still follow:**\n\n- **Pin your SSH host key fingerprint** (`SHA256:...` ) in the UI to prevent\nMITM attacks.\n- **Serve over HTTPS** with the strict Content Security Policy (CSP) headers\nshown in the[Caddy deployment](#deployment-with-caddy) section below\n(WebAuthn also requires a secure context outside`localhost` ).\n\n**Threat model — what would it take to compromise a session?**\n\nBecause there is no custom backend terminating SSH, an attacker would have to compromise one of the following:\n\n- The static web assets served to your browser (e.g., tampering with JS to exfiltrate the session).\n- `websockify` or the reverse proxy in a way that allows script injection into\nthe origin.\n- Your WebAuthn authenticator / secure enclave (leaking the private key) or your browser (spoofing WebAuthn).\n- `sshd` or`etserver` itself (bypassing authentication).\n\nOn the target server:\n\n- **OpenSSH `sshd`** (with` webauthn-sk-ecdsa-sha2-nistp256@openssh.com` support)\n- **[Eternal Terminal](https://eternalterminal.dev/)**\n- **`websockify`** + a TLS reverse proxy such as**[Caddy](https://caddyserver.com/)** (for production HTTPS)\n\nOn the client:\n\n- A modern browser with WebCrypto and WebAuthn support\n- A P-256 WebAuthn authenticator (Tested on YubiKey / FIDO2 key, Touch ID, iPad)\n\nRun a standalone `websockify` server with bundled static assets pointing at local `sshd` (`127.0.0.1:22`) and `etserver` (`127.0.0.1:2022`):\n\n```\nnix run . -- --listen 127.0.0.1:8765\n```\n\nOpen `http://localhost:8765`, click **1. Register Hardware WebAuthn Key (P-256)**, add the printed key to `~/.ssh/authorized_keys`, enter your username and host key fingerprint, and click **2. Connect via Hardware Key**.\n\nStart the auto-reloading Vite dev server (includes a built-in `/ws?token=...` bridge to `localhost-ssh` and `localhost-et`):\n\n```\nnpm install\nnpm run dev\n```\n\nOr via Nix:\n\n```\nnix run .#dev\n```\n\nThen open `http://127.0.0.1:5173`.\n\n## Optional development environment variables\n\n- `WWWET_DEV_HOST` /`WWWET_DEV_PORT` : Listen host and port (default:`127.0.0.1:5173` )\n- `WWWET_SSH_TARGET` /`WWWET_ET_TARGET` : Override default`localhost-ssh` (`127.0.0.1:22` ) and`localhost-et` (`127.0.0.1:2022` ) targets\n- `WWWET_TARGET_CONFIG` : Path to a`websockify`` TokenFile` (`token: host:port` lines)\n- `WWWET_WS_TARGET` : Proxy`/ws` to an external`websockify` server (e.g.`http://127.0.0.1:8765` ) instead of using the built-in TCP bridge\n\nWebAuthn requires HTTPS outside of `localhost`. In production, bind `websockify` to loopback and let [Caddy](https://caddyserver.com/) handle TLS, security headers, static assets, and WebSocket proxying.\n\n```\nnpm run build\n```\n\nThis outputs the static bundle to `dist/`. Configure your target list in [` public/config.json`](https://github.com/blmarket/wwwet/blob/main/public/config.json) (or edit `dist/config.json` after building).\n\nCreate a target config file (e.g. `websockify-targets.conf`) matching the tokens in `public/config.json`:\n\n```\nlocalhost-ssh: 127.0.0.1:22\nlocalhost-et: 127.0.0.1:2022\n```\n\nStart `websockify` bound to loopback:\n\n```\nwebsockify --target-config /path/to/websockify-targets.conf 127.0.0.1:8765\n```\n\n`Caddyfile`:\n\n```\nssh.example.com {\n    header {\n        Content-Security-Policy \"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; img-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'\"\n        X-Content-Type-Options \"nosniff\"\n        Referrer-Policy \"no-referrer\"\n    }\n\n    handle /ws {\n        reverse_proxy 127.0.0.1:8765\n    }\n\n    handle {\n        root * /path/to/wwwet/dist\n        file_server\n    }\n}\n```\n\nIf you add this repository as a flake input named `wwwet`, you can configure Caddy and `websockify` in NixOS like this:\n\n``` js\n{ pkgs, wwwet, ... }:\nlet\n  websockifyTargets = pkgs.writeText \"websockify-targets.conf\" ''\n    localhost-ssh: 127.0.0.1:22\n    localhost-et: 127.0.0.1:2022\n  '';\nin\n{\n  systemd.services.websockify = {\n    enable = true;\n    wantedBy = [ \"multi-user.target\" ];\n    after = [ \"network.target\" \"sshd.service\" \"et.service\" ];\n    serviceConfig = {\n      DynamicUser = true;\n      ExecStart = \"${pkgs.python3Packages.websockify}/bin/websockify --target-config ${websockifyTargets} 127.0.0.1:8765\";\n      Restart = \"always\";\n    };\n  };\n\n  services.caddy = {\n    enable = true;\n    virtualHosts.\"ssh.example.com\".extraConfig = ''\n      header {\n        Content-Security-Policy \"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; img-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'\"\n        X-Content-Type-Options \"nosniff\"\n        Referrer-Policy \"no-referrer\"\n      }\n      handle /ws {\n        reverse_proxy 127.0.0.1:8765\n      }\n      handle {\n        root * ${wwwet.packages.${pkgs.stdenv.hostPlatform.system}.default}\n        file_server\n      }\n    '';\n  };\n}\n```\n\nLicensed under the [GNU General Public License v3.0 or later](https://github.com/blmarket/wwwet/blob/main/LICENSE) (`GPL-3.0-or-later`).", "url": "https://wpnews.pro/news/show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client", "canonical_source": "https://github.com/blmarket/wwwet", "published_at": "2026-11-29 03:45:08+00:00", "updated_at": "2026-11-29 04:13:06.555296+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["wwwet", "Eternal Terminal", "OpenSSH", "WebAuthn", "Caddy", "websockify", "xterm.js", "Teleport"], "also_reported_by": [], "takeaway": "wwwet lets a browser authenticate to stock sshd with a WebAuthn P-256 key (sk-ecdsa-sha2-nistp256@openssh.com) and attach to etserver for roaming sessions, so no custom SSH-terminating backend is needed — but pin the host key fingerprint and serve over HTTPS with strict CSP.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client", "markdown": "https://wpnews.pro/news/show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client.md", "text": "https://wpnews.pro/news/show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client.txt", "jsonld": "https://wpnews.pro/news/show-hn-wwwet-web-based-webauthn-and-ssh-and-et-client.jsonld"}}