Before you start
- Basic networking concepts: IP address, port, firewall (see IP address, subnet mask and gateway)
In plain words
Taking control remotely means sending a computer's screen all the way to you, and your clicks and keystrokes all the way to it. Several "languages" exist for this: RDP is Windows's, VNC is a universal but more basic language, SSH is the language of Linux servers, on the command line. Software such as MobaXterm or Remmina acts as an interpreter that speaks all these languages in a single window. The security rule fits in one sentence: never leave these doors open directly on the internet.
1. The protocols
| Protocol | Default port | What it carries | Systems | Encryption | Typical use |
|---|---|---|---|---|---|
| RDP (Remote Desktop Protocol) | TCP and UDP 3389 | A session: desktop, sound, printers, clipboard, drives | Server: Windows Pro, Enterprise, Server (not Windows Home); clients on every system | Yes (TLS) | Administering Windows servers, working on a PC remotely, virtual desktops |
| VNC (RFB protocol) | TCP 5900 (+ display number) | A copy of the existing screen, pixel by pixel | All | Depends on the implementation: often no | Taking control of the displayed screen, VM console, varied hardware |
| SSH | TCP 22 | A command-line terminal, files (SFTP), tunnels | Linux, macOS, Windows (built-in OpenSSH), network equipment | Yes | Administering Linux servers, switches, routers |
| SPICE | Variable (through the hypervisor) | A VM's screen, with sound, USB, clipboard | KVM hypervisors (Proxmox VE, virt-manager) | Yes (TLS possible) | Comfortable VM console |
| NX (NoMachine) | TCP 4000 | A session or the screen, highly compressed | All | Yes | Smooth remote Linux desktop |
| X11 forwarding | Through SSH | A Linux application window displayed on your computer | Linux; Windows with an X server (MobaXterm) | Yes through SSH | Running a graphical application from a Linux server |
RDP and VNC: the difference that matters
| RDP | VNC | |
|---|---|---|
| Principle | Opens a session specific to the user; the PC's physical screen locks | Shows the same screen as the one displayed in front of the computer |
| Smoothness | Very good: the protocol sends drawing instructions, not just images | Average: sends the parts of the screen that change |
| Features | Sound, printing, drives, clipboard, multiple screens | Keyboard, mouse, screen; the rest depends on the implementation |
| Several users at once | Yes on Windows Server (Remote Desktop Services), only one on Windows 11 | Several people see the same screen |
| Ideal for | Administration and work on Windows | Assistance (showing the user what you're doing), consoles, varied systems |
VNC is often unencrypted
The original VNC protocol sends the image in clear text and limits the password to 8 characters. Recent versions (TigerVNC with TLS, RealVNC) encrypt, but not all of them do. Run VNC inside an SSH tunnel or a VPN, never directly over the network.
2. RDP in practice
Enable Remote Desktop on a Windows PC or server
Settings > System > Remote Desktop, then turn it on while keeping Require devices to use Network Level Authentication to connect (NLA). Only members of the Administrators group and accounts added to Remote Desktop Users can connect. On Windows Server, see also Windows Server 2025, first settings.
The clients
| System | Client | Note |
|---|---|---|
| Windows | Remote Desktop Connection (mstsc) |
Built in; the reference client for connecting to a PC or a server |
| Windows, macOS, iOS, Android | Windows App | Microsoft's app that replaces the old "Remote Desktop" client; on Windows, it's mainly for Azure Virtual Desktop and Windows 365 |
| Linux | Remmina, FreeRDP (xfreerdp) |
Open source |
| Browser | RDS web client, or Apache Guacamole | Nothing to install on the computer |
Opening a connection from the Windows command line:
mstsc /v:srv-fs01.home.arpa
Useful options: /admin (administration session), /f (full screen), /multimon (multiple screens).
RDP across the internet: the gateway
To connect from outside, Microsoft's method is the Remote Desktop Gateway (RD Gateway): the client talks to the gateway over HTTPS (port 443), with authentication and, ideally, two-factor authentication; the gateway relays to the internal servers. Another common solution: a VPN (WireGuard, OpenVPN, IPsec), then RDP inside the network.
Never port 3389 open on the internet
Exposed RDP ports are scanned constantly by bots that try thousands of passwords. It's one of the main entry points for ransomware in businesses. Changing the port number doesn't protect you: it's found within minutes. Always go through a VPN or a gateway with two-factor authentication.
3. VNC in practice
| Software | Licence | Systems | Special feature |
|---|---|---|---|
| TigerVNC | Open source | Windows, macOS, Linux | Fast, TLS encryption, server for Linux sessions |
| TightVNC | Open source | Windows (server), Java (viewer) | Simple, very widespread |
| UltraVNC | Open source | Windows | File transfer, encryption plug-ins |
| RealVNC Connect | Proprietary | All | Encrypted, remote access through the cloud |
| macOS Screen Sharing | Built in | macOS | Built-in VNC server (System Settings > General > Sharing) |
| noVNC | Open source | Browser | HTML5 VNC client; it's the VM console in Proxmox VE |
Securing VNC with an SSH tunnel, from your computer:
ssh -L 5901:localhost:5900 spo@192.168.1.30
Then connect your VNC viewer to localhost:5901: the stream travels encrypted inside SSH. Configure the VNC server to listen on localhost only.
4. SSH
SSH is covered in detail in securing SSH. To connect:
ssh spo@192.168.1.30
The OpenSSH client is built into Windows 10 and 11, macOS and Linux: no extra tool needed for a simple connection. The connection managers below become useful when you juggle dozens of servers.
5. Connection managers
They bring together, in a single window with tabs, all your RDP, VNC, SSH, SFTP, Telnet or serial connections, with their saved settings.
| Software | Systems | Licence | Protocols | Strengths |
|---|---|---|---|---|
| MobaXterm | Windows | Proprietary; free Home edition (limited number of sessions and tunnels), Professional edition | SSH, RDP, VNC, Telnet, SFTP, FTP, serial, X11 | All-in-one: built-in X11 server, automatic SFTP browser next to the terminal, network tools; available as a portable version |
| mRemoteNG | Windows | Open source | RDP, VNC, SSH, Telnet, HTTP, ICA | Manages many connections in a tree |
| Remmina | Linux | Open source | RDP, VNC, SSH, SPICE, X2Go | The reference client on Linux |
| Royal TS / Royal TSX | Windows, macOS | Proprietary, limited free version | RDP, VNC, SSH, Web, many others | Documents shareable within a team, cross-platform |
| Remote Desktop Manager (Devolutions) | Windows, macOS, Linux, mobile | Proprietary, free edition | A great many | Built-in credential vault, team management |
| PuTTY / KiTTY | Windows (PuTTY also Linux) | Open source | SSH, Telnet, serial | Light, essential for network equipment's serial ports |
| Windows Terminal + OpenSSH | Windows | Open source | SSH | Modern, tabs, nothing more to install |
| Termius | All, mobile | Proprietary, free version | SSH, SFTP | Synchronises hosts between devices |
Saved passwords
These tools offer to save passwords. Protect their configuration file with a master password, and prefer SSH keys and a password manager to plain-text passwords in a shared connections file.
6. Remote assistance
To help a user, you need to see their screen, with their consent, often across the internet and without configuring port forwarding.
| Tool | Licence | Special feature |
|---|---|---|
| Quick Assist | Built into Windows 10 and 11 | Screen sharing with a single-use code; the helper signs in with a Microsoft account |
| RustDesk | Open source | Self-hostable: your own relay server, no intermediary |
| TeamViewer | Proprietary, free for private use | Very widespread, cross-platform |
| AnyDesk | Proprietary, free for private use | Light and fast |
| Chrome Remote Desktop | Free | Works with a Google account, from the browser |
Tech support scams
Scammers call pretending to be Microsoft, a bank or a phone company, and ask you to install a remote control tool to "fix" the computer. A genuine service never calls you to take control of your PC. Only give an access code to someone you contacted yourself, and end the session as soon as the job is done.
7. Web gateways
A web gateway gives access to servers from a simple browser, with no client to install and without exposing RDP, VNC or SSH:
| Solution | Licence | Special feature |
|---|---|---|
| Apache Guacamole | Open source | RDP, VNC, SSH, Telnet in HTML5; two-factor authentication (TOTP), session recording; easy to install with Docker |
| RDS web client | Included with Windows Server's Remote Desktop Services | Access to published desktops and applications |
| Administration bastions (Teleport, Devolutions Gateway, commercial solutions) | Variable | Full traceability of administrator access, for demanding environments |
Guacamole sits behind an HTTPS reverse proxy, with two-factor authentication: only port 443 is exposed.
8. Security good practice
| Practice | Why |
|---|---|
| No RDP, VNC or SSH port open directly on the internet | They're the first targets of attack bots |
| VPN or gateway (RD Gateway, Guacamole, bastion) for external access | A single entry point, protected and monitored |
| Two-factor authentication on the VPN or the gateway | A stolen password is no longer enough |
| NLA enabled for RDP | The user authenticates before the session opens; blocks some attacks |
| Named accounts, no shared administrator | Know who connected, and when |
| Account lockout after several failures | Slows down brute-force attacks |
| SSH keys rather than passwords | See securing SSH |
| Updates to servers and clients | Serious vulnerabilities have hit RDP (BlueKeep in 2019) and assistance tools |
| Logging of connections | Spot abnormal access |
| Firewall: only allow 3389 or 22 from the administration network | Reduce the possible sources |
9. Which one to choose?
| Need | Recommended choice |
|---|---|
| Administering Windows servers | RDP (mstsc), through a VPN or gateway |
| Administering Linux servers and network equipment | SSH (Windows Terminal, PuTTY) |
| Managing many connections of every type on Windows | MobaXterm or mRemoteNG |
| Same need on Linux | Remmina |
| Accessing a VM's console | The hypervisor's console (noVNC or SPICE in Proxmox) |
| Helping a user | Quick Assist, or self-hosted RustDesk |
| Giving access to servers from any browser | Apache Guacamole behind HTTPS and two-factor authentication |
Key points
- RDP for Windows (complete, smooth session), VNC to see the screen as it is (often unencrypted), SSH for Linux and networking.
- On Windows,
mstscremains the reference RDP client; MobaXterm and mRemoteNG bring all the protocols together, Remmina on Linux. - For assistance: Quick Assist or self-hosted RustDesk, and beware of fake tech support.
- Never 3389, 5900 or 22 exposed on the internet: VPN or gateway with two-factor authentication.
- NLA, named accounts, SSH keys, updates and logging.