tunnl.gg
Expose a local web server to the internet with one SSH command. Nothing to install, no
account: you get a public HTTPS URL, and with stable@ the same URL every time.
ssh -t -R 80:localhost:8080 proxy.tunnl.gg
This repository is the open-source (MIT) server behind tunnl.gg. Use
the hosted service for free, or run your own.
Website · Docs · Guides · Sponsor
Contents
Using tunnl.gg
Features
- One command, nothing to install: uses the SSH client already on macOS, Linux and
Windows 10+. No account, no auth token.
- HTTPS and WebSockets on a subdomain like
https://happy-tiger-a1b2c3d4.tunnl.gg.
- Stable URLs: connect as
stable@ and your SSH key gets the same URL every time.
- A live view in your terminal: the URL, a QR code for phones, and a colored log of
every request (path, status, size, timing, visitor), with plain-words explanations when
one fails.
- Options in the command: Host header rewrite for dev servers, passwords, IP
allowlists, CORS, and JSON output for scripts and AI agents.
- Safe by default: rate limits, abuse protection, a phishing warning page for
browsers, and tunnels kept out of search engines.
Quick start
# Expose the app on port 8080
ssh -t -R 80:localhost:8080 proxy.tunnl.gg
tunnl prints the public URL and a QR code, then logs requests as they arrive. Press
Ctrl+C to stop. The -t flag gives the session a terminal, which the server needs to show
the URL (for scripts, see JSON output).
The first time you connect, ssh asks you to confirm the server's host key. The ED25519 key
of proxy.tunnl.gg is:
SHA256:5uQ6VobmUpY4wyMmm5jnAwFtt3aX06WYDDM4ER+2WUw
It's also published as a DNSSEC-signed SSHFP record, so ssh can check it for you: add
-o VerifyHostKeyDNS=yes. With a resolver that validates DNSSEC, ssh then accepts the key
without asking.
Keep the same URL
Each connection gets a new random URL. Connect as stable instead, and the URL is tied to
your SSH key and stays the same every time you reconnect:
ssh -t -R 80:localhost:8080 [email protected]
- Any SSH key works; there's nothing to register. Without one,
stable@ is refused:
create one with ssh-keygen -t ed25519.
- Each key has one live tunnel. Reconnecting with the same key (say, after your laptop
slept) replaces the old connection, so two machines need two keys.
- The URL can't be worked out from your public key, but it changes if the server's host
key changes.
Options
Add options after the host, as name=value:
ssh -t -R 80:localhost:5173 proxy.tunnl.gg host=localhost auth=me:secret allow=203.0.113.7