Remote desktop from Windows to Linux (and from Linux to Windows)
A Windows PC can control a Linux machine with built-in tools. Windows includes the RDP client, so the Linux side only needs an RDP server.
Route 1: Remote Desktop Connection and RDP
- On the Linux machine, set up an RDP server: in Settings on GNOME (GNOME Remote Desktop), otherwise with xrdp.
- Find the address:
hostname -Iin a terminal. - On Windows, press Windows + R, type
mstscand enter the address. - Sign in with the credentials.
Clipboard and drives can be shared under "Local Resources" in Remote Desktop Connection.
Route 2: SSH for the terminal
Windows 10 and 11 include an SSH client. In a terminal:
ssh user@address-of-the-linux-machine
The Linux machine needs the openssh-server service for this.
Route 3: VNC
With a VNC server on Linux and a VNC viewer on Windows you see the running session of the Linux machine. Run the connection through an SSH tunnel.
The other direction: RDP from Linux into Windows
On the Windows machine, enable access under Settings → System → Remote Desktop. This is available in the Pro and Enterprise editions, not in Windows Home. On Linux, connect with Remmina and the RDP protocol.
Common errors
- No connection: check the firewall on the Linux machine. Port 3389 must be reachable on the local network.
- Black screen with xrdp: the user is already signed in locally on the Linux machine.
- Wrong keyboard layout: set the layout inside the Linux session.
Over the internet
Do not forward RDP directly on your router. Use a VPN, or an SSH tunnel from Windows:
ssh -L 3390:localhost:3389 user@your-server
Remote Desktop Connection then connects to localhost:3390.
Linux on a Windows PC with no setup
If you need a Linux desktop from Windows but do not want to run a Linux machine, open one in the browser. At desk-plus the desktop runs in a data center, from €9.74 a month.