What SSH is
SSH (Secure Shell) appeared in 1995 as a secure replacement for Telnet. Today it is the main way of managing servers: system administrators, developers and automation tools work over SSH, and Git transfers code over it. The standard port is 22, and the most common implementation is OpenSSH, which comes with Linux, macOS and current versions of Windows.
An SSH connection is encrypted and protected against impersonation of the server: the client remembers the server's key and warns if it changes. The user proves who they are with a password or, more securely, with a key of their own.
Three kinds of forwarding
One SSH connection can carry many independent channels. Port forwarding is built on that:
- Local (
ssh -L). A port on your computer leads to an address reachable from the server. This is how you reach, say, a database that is open only inside the server's network. - Remote (
ssh -R). The reverse: a port on the server leads to your computer. This is how you show a colleague a site running on your own machine. - Dynamic (
ssh -D). The SSH client opens a SOCKS proxy locally, and any program set to use that proxy reaches the network through the server.
The command ssh -D 1080 user@server is the shortest way to get a protected channel to your own server without installing anything.
How a tunnel differs from a VPN
An ordinary VPN creates a virtual network interface that carries all of the device's traffic. An SSH tunnel carries only individual connections: those sent to the forwarded port or to the SOCKS proxy. Programs that know nothing about the proxy go around it.
A tunnel can be turned into a full VPN in two ways: by an app that creates the virtual interface itself and sends its traffic into the tunnel, or by tools such as sshuttle. OpenSSH also has a built-in network tunnel mode (ssh -w), but it needs administrator rights on both sides and is rarely used.
Strengths
- It is everywhere. Most systems include an SSH client, and every Linux server has an SSH server.
- Mature security. The protocol is open, standardised and has been tested in practice for decades.
- Familiar to networks. Connecting to a server over SSH is an everyday working operation.
- The server is verified by a key, with no certificates or certificate authorities.
Limits
- TCP only. Port forwarding does not carry UDP, so calls and games work worse through such a tunnel, or not at all.
- TCP inside TCP. When packets are lost, two layers of retransmission get in each other's way and delay grows.
- One shared stream. All channels travel in one connection: a delayed packet holds up the rest. Each channel also has its own transfer window, which caps its speed.
- Speed. Throughput is usually lower than with protocols designed for VPNs.
The SSH tunnel in StayReady
In StayReady the SSH tunnel is one of the transports for VLESS: the same VLESS travels inside an SSH connection. It is an alternative for networks where the main way to connect is unstable. The transport is available in the apps for Windows, macOS, Linux and Android and is chosen in the settings, under Connection protocol; no server, keys or commands of your own are needed. The apps are on the download page.
Common questions
Is an SSH tunnel a VPN?
Not quite. By itself a tunnel carries individual connections, not all of a device's traffic. It becomes a VPN when an app sends the traffic of a virtual network interface into the tunnel.
How do I make an SSH tunnel?
If you have a server you can reach over SSH, the command ssh -D 1080 user@server opens a SOCKS proxy on port 1080 of your computer. Then point your browser or system at it.
Does an SSH tunnel carry UDP?
Standard port forwarding does not, only TCP. Apps that need UDP therefore work worse through such a tunnel.
How much slower is an SSH tunnel than an ordinary VPN?
It depends on the network. On a good line the difference is small; when packets are lost, a tunnel falls well behind UDP-based protocols because TCP is carried inside TCP.
Does StayReady have an SSH tunnel?
Yes, as one of the transports for VLESS in the apps for Windows, macOS, Linux and Android. There is no server or key to set up. Download StayReady.
Updated: November 15, 2026