Reverse SSH vs a VPN mesh vs a hosted relay
All three get you into a device that nothing can connect to, because the device dials out. They differ in what you run, what you get once you are in, and what you ask the network's owner to accept.
This page is for choosing. To check whether you are behind CGNAT, see SSH behind CGNAT. For the short version of the three options, see SSH without port forwarding.
Does it work behind CGNAT?
Yes for all three, for the same reason: the device opens the connection. What differs is what sits at the other end of it.
A reverse SSH tunnel needs a server with a public IP address that you keep
running. The device runs ssh -R to that server, which then
listens on a port that leads back to the device's sshd. You log in to the
server first, then to the port. If the server is down, so is every device
behind it.
A mesh VPN joins the device to a network of your machines. Where two peers can connect directly, they do. Where they cannot, a relay carries the traffic. On Tailscale's connection types page, read on 22 November 2026, every connection starts relayed through one of its DERP servers and is upgraded to a direct one if possible. If that fails, it tries a peer relay, and if that fails too the connection stays on the DERP server. The page says all three kinds are end-to-end encrypted with WireGuard, and that a direct connection cannot be made when both devices are behind a hard NAT. So on CGNAT a mesh usually works, and may be working through a relay run by the vendor, not directly.
A hosted relay skips the peer-to-peer question. The device keeps one outbound HTTPS connection to the relay, and your shell is joined to it there. It always goes through the relay, which is fine for a shell and not something to push a large transfer through.
What you take on
Reverse SSH tunnel
- The server: rent it, patch it, watch it, and pay for it when it is idle.
-
Reconnects:
ssh -Rdoes not redial. You add a supervisor orautosshon every device, and you choose the retry timing. One that is too eager, on a whole fleet at once, is a problem of its own. - A port per device on the server, and a record of which port is which device.
- Keys: the device needs a key that can log in to your server, and the people who use it need access to the server and to the device. That list grows. The post on what a reverse tunnel leaves open covers it.
VPN mesh
-
A client on every device. On Linux it normally needs a
tundevice. Tailscale's userspace networking page, read on 22 November 2026, describes a mode for systems where one cannot be created, aimed mainly at containers and serverless platforms. There the daemon acts as a SOCKS5 or HTTP proxy that programs must be pointed at. - A network to design: who can reach what. A device you ship joins your network, and from then on it is part of it.
- Account and policy upkeep on the vendor's side, or a coordination server of your own if you self-host.
Hosted relay
- An agent on the device, and a team account. No server of your own.
- A dependency on the relay: if it is unreachable, you cannot open a shell. We offer no uptime SLA.
- The device's own sshd and its list of trusted keys stay yours. They are how you decide who gets in.
What the network's owner has to approve
With a reverse tunnel, one outbound SSH connection to your server. Some networks block outbound port 22, so people run it on 443 instead.
With a mesh, their IT team is letting a device join a network that spans your other machines. That is a bigger conversation than a firewall rule, and a bigger one still if the device sits on their LAN.
With a hosted relay, one outbound TLS connection on 443 and WebSocket allowed. The ask is written up in what to ask a customer's IT.
Where the others win
Reverse SSH wins for one or two machines when you already run a server. It costs nothing extra, there is no third party in the path, and you understand every part of it. It stops being cheap when it is fifty devices and somebody has to know which port is whose.
A mesh wins when you need more than a shell. Any port, any protocol, device to device: a web interface on the device, a database, copying files over a direct link, machines that talk to each other. A shell relay does none of that. If your real need is to reach a network, not a device, use a mesh.
A hosted relay wins when all you need is a shell on devices that sit on networks you do not control, at a count where a jump host becomes a chore, and where the customer's IT will approve one outbound connection but not a VPN.
Where RescueShell fits
The device holds one outbound HTTPS connection on 443 and opens no inbound port. A shell is a session to the device's own OpenSSH server, which checks an SSH key from the device's own trusted list. It is not a route into the LAN. The thinking behind that is in why our agent is not a VPN, and the mechanics are in how it works.
What it does not do
- Linux only, with an OpenSSH server. Dropbear is not supported.
- One open shell per device at a time.
- No session recording, no uptime SLA, no SOC 2. See security.
- Port forwarding through a session is off, and there is no HTTP proxy support. It is a shell on one device, not a site-wide VPN.
- The agent cannot use a network where web traffic only leaves through an HTTP proxy.
How to choose
- One or two machines and a server you already run: a reverse tunnel.
- You need ports and protocols between machines, or a network, not a shell: a mesh.
- A shell on many devices in other people's networks, with one outbound rule to ask for: a hosted relay.
€0.10 a device a month, billed yearly, at least €6 a year, plus VAT, hosted in the EU. The first device is free to try with no card, for 30 days from when it connects, not from when you sign up. Until you add a card, shell traffic is capped at 50 MB in total and a second device needs a card. Start a trial.