Remote desktop on Linux: the options compared
There is no single way to reach a Linux desktop remotely. Several protocols and tools exist, and the right one depends on whether you stay inside your own network, connect over the internet, or would rather not run a machine of your own at all.
The options compared
| Option | Strength | Weakness |
|---|---|---|
| RDP (xrdp, GNOME Remote Desktop) | Smooth, and usable from Windows without extra software | Setup differs by desktop environment |
| VNC | Widely supported, shows the running session | Slower, and weakly secured without a tunnel |
| SSH with X forwarding | Single programs, secure | No full desktop, sluggish on slow links |
| AnyDesk, RustDesk, NoMachine and similar | Work behind routers without port forwarding | A vendor's relay servers, licence questions |
| Desktop in the browser (WebRTC) | No client and no server of your own | A running cost |
RDP: the standard for a full desktop
RDP comes from the Windows world but is well supported on Linux. The server side is xrdp or the remote desktop built into GNOME. The usual Linux RDP client is Remmina. Setting up the server is covered in our xrdp guide and in GNOME Remote Desktop.
VNC: simple, but not for the open internet
VNC transfers the screen as an image and works with almost any system. Always run it through an SSH tunnel or a VPN, because many VNC servers offer only weak protection.
SSH: when a terminal is enough
For administration the shell is often all you need. Single graphical programs can be brought to your screen with ssh -X user@host. SSH is also the easiest way to secure other protocols:
ssh -L 3389:localhost:3389 user@host
The RDP client then connects to localhost:3389 and the data travels encrypted through the tunnel.
Security rules
- Never expose RDP or VNC ports directly to the internet.
- Allow access only through an SSH tunnel or a VPN.
- Use strong passwords or keys and keep the system up to date.
When a desktop in the browser makes sense
If you do not want to keep a machine running, open ports or install a client, rent the Linux desktop ready to use. At desk-plus, KDE Plasma, GNOME or Xfce runs in a data center and appears encrypted in your browser, from €9.74 a month. See Linux virtual desktop for how that works.