A containerized solution for creating reverse SSH tunnels using Docker. This tool helps establish secure connections through network barriers by creating tunneling servers in isolated environments.
What it's good for
Reaches a machine behind NAT over plain SSH, set up with one command per end. If the inside machine and its key get stolen, the thief gets no shell, no sudo and no other port on your server, and uninstall --all leaves the folder exactly as you cloned it.
Diagrams
Main paths only. The edge cases stayed in the code.
The old version accepted any host key. Now it remembers faces.
Point at a box to see what it connects to.
Install the outside serverasks ports, makes host keys
Install the inside machinemakes tunnel and login keys
Authorize its key on the servertunnel port only, no shell
Server accepts the tunnel key?you confirm its host key once
autossh dials out, holds onredials whenever it drops
Log in through the tunnelinstall proves it works
Tunnel check passed?
Check firewall, key and logsautossh keeps trying meanwhile
You ssh -p 22224 inanyone can knock; only keys enter
Need another inside machine?
Forward a port with ssh -Le.g. its web page
Finished? tunnel.sh uninstall--all: folder as cloned
Install the outside server(asks ports, makes host keys) → Install the inside machine
Install the inside machine(makes tunnel and login keys) → Authorize its key on the server
Authorize its key on the server(tunnel port only, no shell) → Server accepts the tunnel key?
Server accepts the tunnel key?(you confirm its host key once) → no: Authorize its key on the server → yes: autossh dials out, holds on
autossh dials out, holds on(redials whenever it drops) → Log in through the tunnel
Log in through the tunnel(install proves it works) → Tunnel check passed?
Tunnel check passed? → yes: You ssh -p 22224 in → no: Check firewall, key and logs
Check firewall, key and logs(autossh keeps trying meanwhile) → fixed: autossh dials out, holds on
You ssh -p 22224 in(anyone can knock; only keys enter) → Need another inside machine?
Need another inside machine? → yes: Forward a port with ssh -L → no: Finished? tunnel.sh uninstall
Forward a port with ssh -L(e.g. its web page) → Finished? tunnel.sh uninstall
Finished? tunnel.sh uninstall(--all: folder as cloned)
Features
Containerized tunnel creation
Network penetration capabilities
Automated setup scripts
Security isolation
What I learned
The old setup accepted any host key; now autossh remembers the server's key after you confirm it once and refuses a different one.
Tunnel keys used to sit on the outside server with no limits, shell included. Since November 2026 each one opens only its own tunnel port.
No curl | bash installer on purpose: piping a download into bash runs code you haven't seen, or half of it if the download breaks.
How it fits together
Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.
One outbound reverse SSH tunnel per device gives you a browser terminal, files, remote desktop, a remote browser and the LAN behind it. No port forwarding, no VPN, no public IP.
One Docker dev box per user, with a web terminal, a noVNC desktop and optional GPU. The Django version, rewritten in Rust, partly to find out whether I could.