rescueshell Start trial

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

VPN mesh

Hosted relay

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

How to choose

€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.