Guide
How to remote desktop into Ubuntu from Windows (RDP, xrdp or SSH)
To remote desktop into Ubuntu from Windows, turn on Ubuntu's built-in Remote Desktop (in Settings on Ubuntu 24.04 and 22.04) or install xrdp, then connect with Remote Desktop Connection, which every edition of Windows includes. For a terminal only, use SSH. To reach Ubuntu from outside your home network without opening ports, install RemoteAccessApp's Linux Agent and open the desktop from the Windows app or a browser.
Here's how each one works on Ubuntu 24.04 and 22.04, which to pick, and the Wayland catch.
- Ubuntu 24.04 and 22.04
- From Windows 11 or 10, Home or Pro
- RDP, SSH, or no ports at all
Updated · Works on Ubuntu 24.04 and 22.04, from Windows 10 and 11
Which way to choose
| Way | What you get | Best for |
|---|---|---|
| Ubuntu's built-in Remote Desktop | The desktop that's signed in at the PC, over RDP | A PC on your network that stays signed in |
| xrdp | A separate desktop session over RDP | A PC nobody uses in person, or a second user |
| SSH | A terminal, no desktop | Commands, updates and servers |
| RemoteAccessApp | The signed-in desktop, from anywhere, with no ports to open | Reaching it from outside, or helping someone at it |
RDP (Remote Desktop Protocol) is the protocol Windows' own remote desktop uses, so Ubuntu's built-in option and xrdp both work with the Remote Desktop Connection app already on your Windows PC. On Windows, open it from the Start menu, or press Win+R and type mstsc.
Option 1: Ubuntu's built-in Remote Desktop
Ubuntu 22.04 and later can share the desktop over RDP with nothing to install. It shows the session that's signed in at the PC, and it works with Ubuntu's default Wayland desktop.
Step 1: Turn on Remote Desktop in Ubuntu's Settings
Ubuntu 24.04: open Settings → System → Remote Desktop. On the Desktop Sharing tab, switch on Desktop Sharing and Remote Control.
Ubuntu 22.04: open Settings → Sharing, turn on the switch at the top if it's off, open Remote Desktop and switch on Remote Desktop and Remote Control.
Step 2: Set a user name and password for remote connections
Under Login Details (24.04) or Authentication (22.04), set the user name and password that Windows will use. They're separate from your Ubuntu sign-in. Note the port the page shows; it's 3389 unless it says otherwise.
Step 3: Find Ubuntu's IP address
Open a terminal on the Ubuntu PC and run:
hostname -I
The first address, such as 192.168.1.50, is the one to use on your network.
Step 4: Connect from Windows
Open Remote Desktop Connection, type the address (add the port if it isn't 3389, as in
192.168.1.50:3390) and click Connect. Enter the user name and password from step 2. The first time, Windows warns that it can't verify the PC's certificate: check you typed the right address and click Yes.
- Someone has to be signed in at the PC. Desktop Sharing shows that session. On Ubuntu 24.04, the Remote Login tab on the same page covers the case where nobody is: turn it on (it asks for an administrator password) and you get Ubuntu's login screen in the remote window.
- Stop it sleeping. In Settings → Power, turn off Automatic Suspend while it's plugged in. A suspended PC can be woken with Wake-on-LAN.
Option 2: xrdp, a separate session
xrdp is an open-source RDP server from Ubuntu's own repositories. Instead of sharing the desktop that's open at the PC, it starts a new desktop session for whoever signs in, on X11. That suits a PC nobody sits at.
Step 1: Install xrdp
sudo apt update sudo apt install xrdp sudo adduser xrdp ssl-cert sudo systemctl restart xrdp
The third line lets xrdp read its encryption certificate; if it's already allowed, it just says so. xrdp then starts with the PC.
systemctl status xrdpshould say active (running).Step 2: Sign out at the PC
Ubuntu's desktop can't run twice for the same user. If you're still signed in at the PC, the remote window usually stays black or closes straight away. Sign out there first, or use a different Ubuntu user for remote sessions.
Step 3: Connect from Windows
In Remote Desktop Connection, type Ubuntu's IP address and click Connect. On xrdp's login screen, keep the session type Xorg and enter your Ubuntu user name and password.
Things that trip people up
/etc/xrdp/xrdp.ini). If GNOME is slow over xrdp, a lighter desktop just for remote sessions often helps: sudo apt install xfce4, then echo xfce4-session > ~/.xsession. The desktop at the PC stays the same.Why the two behave so differently comes down to X11 and Wayland: xrdp only does X11 sessions, while the desktop at the PC runs on Wayland by default. Our post on Linux remote desktop on X11 vs Wayland explains it.
Option 3: SSH for a terminal
If you only need to run commands, install updates or edit files, SSH is lighter than any desktop. On Ubuntu, install and start the OpenSSH server:
sudo apt install openssh-server sudo systemctl enable --now ssh
Windows 10 and 11 include an ssh command. In PowerShell or Windows Terminal, run ssh yourname@192.168.1.50 with your Ubuntu user name and address, check the key fingerprint the first time, and enter your password. The full walkthrough, with signing in by key, is in how to SSH to a Linux server from Windows. RemoteAccessApp's free SSH and SFTP client keeps your hosts and keys in one list.
Using a firewall on Ubuntu?
sudo ufw status says it's active, allow the port from your own network only, for example sudo ufw allow from 192.168.1.0/24 to any port 3389 proto tcp for RDP, or port 22 for SSH.From outside your home network
RDP and SSH as set up above work on your own network. To reach them from elsewhere, you'd forward port 3389 or 22 on your router to the Ubuntu PC. That puts its sign-in on the internet, where bots try passwords around the clock, and it doesn't work at all on connections without a public address of their own. See remote desktop without port forwarding for the alternative.
Option 4: RemoteAccessApp, with no ports to open
RemoteAccessApp's Linux Agent connects out to RemoteAccessApp's relay, so the Ubuntu PC is reachable from anywhere with nothing changed on the router. Like Ubuntu's built-in option, it shows the desktop that's signed in at the PC, on Wayland or Xorg.
Step 1: Install the .deb on Ubuntu
Download it from the download page on the Ubuntu PC and run the command the page shows in your Downloads folder:
sudo apt install ./remoteaccessapp_*_amd64.deb
Step 2: Set it up with a code
Open RemoteAccessApp Agent from Show Apps. Choose Add a PC on your dashboard at remoteaccessapp.com or in the Windows app, and type the 6-digit code into the Agent. Or sign in there with your account.
Step 3: Open it from Windows
In the RemoteAccessApp Console on your Windows PC, the Ubuntu PC is on the Devices page next to your Windows PCs: double-click it. Or sign in at remoteaccessapp.com in any browser. The person at the Ubuntu PC clicks Allow, unless you've turned on unattended access there.
Step 4: The first time on Wayland, approve screen sharing
Ubuntu shows its own Remote Desktop dialog at the PC once: turn on Allow Remote Interaction, keep Remember This Selection ticked and click Share. Later sessions start without it, even with nobody there.
- It runs on 64-bit (x86-64) PCs whose desktop uses X11 (Xorg) or Wayland, such as Ubuntu, Debian, Linux Mint and Fedora. ARM computers aren't supported yet.
- If a Wayland desktop can't share its screen with apps, the Agent says so; choose an Xorg session at the login screen there.
- Sessions from the Windows app are end-to-end encrypted, with a bash terminal, file transfer and clipboard sync. In a browser they're encrypted, but not end to end.
- The Ubuntu PC is one of the 5 PCs on the free plan. Sound and every monitor are part of Pro.
The step-by-step for Ubuntu is in how to access an Ubuntu desktop remotely, and everything the Console can do with a Linux PC is in controlling a Linux PC from Windows. Fixes for a missing tray icon or a black screen are in the RemoteAccessApp on Linux help article, and the overview is remote desktop for Linux.
Going the other way: Windows from Ubuntu
The same package includes the RemoteAccessApp Console for Linux, so Ubuntu can open your Windows PCs too. It also keeps saved Remote Desktop (RDP) hosts and opens them with FreeRDP (sudo apt install freerdp2-x11), so it works as an RDP client on Linux. See how to control a Windows PC from Linux.
Questions, answered
More on RemoteAccessApp for Linux
- Remote desktop for LinuxRemoteAccessApp for Linux: the Agent and the Console in one package. See and control your Linux desktops, on X11 or Wayland, free for up to 5 PCs.Learn more
- Install on LinuxInstall the Agent and the Console with the .deb on Ubuntu, Debian and Mint or the .tar.gz elsewhere, add the PC, and approve screen sharing once on Wayland.Read the guide
- Remote access to UbuntuInstall RemoteAccessApp on Ubuntu, approve screen sharing once at the PC, and open the desktop from a browser or the Console.Read the guide
- Control Linux from WindowsYour Linux PCs on the Console's Devices page next to your Windows PCs: screen and control, a bash terminal, processes, services and the journal.Read the guide
- Unattended access on LinuxTurn on unattended access at the Linux PC, trust your console once, approve screen sharing once on Wayland and start the Agent at sign-in.Read the guide
- Help someone on LinuxThe person on Linux reads you the 8-digit code on their Home screen and clicks Allow; you connect from the app or a browser.Read the guide
- Linux terminal without a sessionRun a command or open a bash terminal on a Linux PC from the Devices page: straight away under unattended access, otherwise after an Allow.Read the guide
- Transfer files with a Linux PCDrop files on a session to put them in Downloads, or browse the Linux PC's home folder and filesystem from the Console, with resume.Read the guide
- Unlock a locked Linux PCA locked Linux screen is no dead end: type the user's password in the session and the system unlocks it, on Wayland and X11.Read the guide
- Approve screen sharing on WaylandThe one-time Remote Desktop dialog on Ubuntu and other Wayland desktops: what to pick, how to do it ahead of time, and what to do if it asks again.Read the guide
- Control Windows from LinuxInstall RemoteAccessApp on your Linux PC, sign in to the Console and open your Windows PCs: screen, keyboard, terminal, tools and files.Read the guide
- RemoteAccessApp on LinuxRemoteAccessApp for Linux is here, Agent and Console: X11 and Wayland desktops, the same Allow prompt and banner, a bash terminal, files and sound.Read the post
- X11 vs Wayland for remote desktopWhat X11 and Wayland change for screen sharing and remote control, where xrdp fits, and how the Agent works on both: on Wayland, approve once and it's remembered.Read the post
- Windows and Linux PCs in one appA mixed home or office in one account: the same Devices list, sessions, terminal, tools and consent rules for Windows and Linux PCs.Read the post
- When the Linux screen locksWhy a locked Linux screen so often ends a remote session, and how RemoteAccessApp keeps the PC awake and lets you unlock it, on Wayland and X11.Read the post
Related
- Remote desktop for WindowsSee and control your Windows PCs from anywhere, free for up to 5 PCs.Learn more
- No port forwardingHow to reach a PC behind a router without opening ports, and why it's safer.Read the guide
- SSH to a Linux serverConnect to a Linux server from Windows or another Linux machine, check its key, and copy files.Read the guide
