SSH tunnels: no install needed
If a computer has the ssh command (built into Linux, macOS and Windows 10/11), it can publish a local app with one line. Nothing to download, no account needed to try it.
This server has not enabled SSH tunnels. The commands below will not work here; use the ProxVN client, or ask the operator to enable the SSH gateway (see self-hosting).
1. Your first tunnel
Start your app (here on port 3000), then run:
ssh -p 443 -R0:localhost:3000 tunnel.proxvn.io.vnThe terminal prints a link such as https://abc123.proxvn.io.vn, the limits that apply and then every request as it arrives. Keep the window open; press Ctrl+C to stop.
-R0:localhost:3000 means “publish my local port 3000”. Change 3000 to your app’s port. The -p port goes through firewalls that only allow web traffic.
2. HTTP, TCP and your own name
| You want | Command |
|---|---|
| Website, API, webhook | ssh -p 443 -R0:localhost:3000 tunnel.proxvn.io.vn |
| SSH, RDP, database, Minecraft Java (TCP) | ssh -p 443 -R0:localhost:22 [email protected] |
| Use your account (type the API key when asked) | ssh -p 443 -R0:localhost:3000 [email protected] |
| Use your account without prompting | ssh -p 443 -R0:localhost:3000 [email protected] |
Fixed name myshop (account) | ssh -p 443 -R myshop:80:localhost:3000 [email protected] |
| QR code for your phone | ssh -p 443 -R0:localhost:3000 [email protected] |
HTTP tunnels share the HTTPS port and are told apart by name, so they never use a public TCP port. Only tcp@ receives a port, shown as tcp://tunnel.proxvn.io.vn:PORT. Words in the user name can be combined with +, e.g. tcp+qr+login@.
3. Without an account vs. with an API key
| Without an account | With an API key | |
|---|---|---|
| Time limit | Ends automatically (60 minutes by default) | Unlimited |
| Tunnels at once | 2 per IP by default | Your account limit |
| Speed / traffic | Capped per tunnel | Unlimited |
| Name | Random | Your choice |
| Visitors with a browser | See a safety warning page first | Go straight to your app |
The exact limits of this server are printed when the tunnel opens. The warning page protects visitors from phishing on anonymous links; API clients, webhooks and curl are not affected. Get an API key by creating a free account.
4. Password, IP allowlist, headers and more
Write options after the host name. The server applies them before the first visitor gets through, and the terminal lists any option it did not understand.
ssh -p 443 -R0:localhost:3000 tunnel.proxvn.io.vn 'b:team:Mat-Khau-Manh' 'w:203.0.113.0/24' co qr| Option | What it does | Example |
|---|---|---|
b:user:pass | Ask visitors for a username and password (basic auth). Repeat for more users. | 'b:team:Mat-Khau-Manh' |
k:token | Require Authorization: Bearer token, handy for APIs and webhooks. At least 8 characters. | 'k:s3cret-token' |
w:ip/cidr,… | Only these addresses may connect. Works for HTTP, TCP and TLS. | 'w:203.0.113.0/24,198.51.100.7' |
a:Name:Value | Add a request header for your app. | 'a:X-Env:staging' |
u:Name:Value | Replace a request header. u:Host:… changes the Host your app sees. | 'u:Host:myapp.local' |
r:Name | Remove a request header. | 'r:Cookie' |
co | Answer CORS preflight requests and add Access-Control-Allow-Origin. | co |
x:passpreflight | Let CORS preflight (OPTIONS) through without the password or token. | x:passpreflight |
x:xff[:Header] | Put the visitor IP in a header of your choice (X-Forwarded-For is always sent). | x:xff:X-Client-IP |
x:localtls[:sni] | Your local app speaks HTTPS (self-signed is fine). | x:localtls |
qr | Print a QR code of the public URL, to open it on a phone. | qr |
x:nolog | Do not print each request in the terminal. | x:nolog |
Wrap options in single quotes so your shell keeps them intact. Options that only make sense for HTTP are ignored for tcp@ tunnels, with a note in the terminal.
5. See every request in the browser
Add -L4300:localhost:4300 and open http://localhost:4300 on your computer: the last 200 requests with method, path, status, timing and headers, updated live.
ssh -p 443 -L4300:localhost:4300 -R0:localhost:3000 tunnel.proxvn.io.vnThe inspector exists only inside your own SSH connection. Nobody else can open it, and ProxVN does not accept any other -L forward.
6. Keep it running and reconnect automatically
Linux / macOS
while true; do ssh -p 443 -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -R0:localhost:3000 tunnel.proxvn.io.vn; sleep 3; doneWindows (PowerShell)
while ($true) { ssh -p 443 -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -R0:localhost:3000 tunnel.proxvn.io.vn; Start-Sleep 3 }Anonymous tunnels get a new random name after each reconnect. For a link that never changes, use an API key with your own name (-R myshop:80:…) or the ProxVN client, which also reconnects by itself.
7. Check the server key
The first time, ssh asks whether to trust the server. Continue only if the fingerprint it shows matches this one:
ED25519 SHA256:VwvGwTliVCJKAGeD/cWpLD5V5V1C5tqxevAoMh6e8GU
8. SSH or the ProxVN client?
| SSH | ProxVN client | |
|---|---|---|
| Install | Nothing | One small file |
| HTTP / TCP | ✓ | ✓ |
| UDP (game servers, VoIP) | Not possible over SSH | ✓ |
| Folder sharing, MCP, background service | — | ✓ |
| Best for | Quick demos, borrowed or locked-down machines | Daily use, best speed |
Advanced: tls+login@ relays raw TLS to your own HTTPS server (end-to-end encryption, your own certificate). It needs an API key and only works on servers whose tunnel names are not behind a CDN proxy.
9. Common problems
| Message | What to do |
|---|---|
Connection refused / timed out | Check the -p port and the host name. Without -p, ssh uses port 22, which is not ProxVN. |
Permission denied | Wrong API key, or this server only accepts accounts. Try login@ and paste the key again. |
remote port forwarding failed | A limit was reached (tunnels per IP, server capacity) or tcp@ is not allowed without an account. The terminal shows the reason when opened without -N. |
| Browser shows 502 | Your app is not running on the port after localhost:, or it only speaks HTTPS (add x:localtls). |
| Tunnel closed after a while | Anonymous time or traffic limit; use an API key or the reconnect loop above. |