Connecting to Raspberry Pi from Windows PC using SSH and XRDP (4K, Tutorial in desc)

Опубликовано: 12 Май 2026
на канале: Evaporal
133
1

Here is a useful tip if you are trying to do this as well. You cannot use XRDP on the root user ( pi ) for some reason so you will have to make another user and then add that user to the admin group to give it sudo privileges.

To get a better connection / more FPS, lower the colour range to 15 bits, the RDP connection was 15 bits, it doesn't really make a difference visually but there is a lot more colour banding but it isn't that bad. The next thing to do is lower the resolution and if you want use a tool like Magpie or Lossless Scaling in order to stretch it to fullscreen.

Magpie: https://github.com/Blinue/Magpie
Lossless Scaling (PAID): https://store.steampowered.com/app/99...

Here is a little tutorial:

1. Enable SSH on the Raspberry Pi, by default Raspbian (the OS) has it disabled. To enable it click on the start icon at the top left, then go to Preferences / Raspberry Pi Configuration / Interfaces and then toggle on SSH.

2. Install XRDP using the command: sudo apt-get install xrdp

3. Run the command: sudo service xrdp There it will print out the following

"Usage: /etc/init.d/xrdp {start|stop|status|restart|try-restart|force-reload}
"

Those are the commands that xrdp can run.

4. Run the command sudo service xrdp start To start XRDP.

5. Now on your Computer, search for Remote Desktop Connection and run the program. If it is not there, for me on Windows 11 and 10 it was enabled by default but it might not be for you so to enable it search optional features, then click on add an optional feature and add OpenSSH Client. If you are on Linux or MacOS it is installed by default.

6. Set the Computer input to the local IP Address of your Raspberry Pi and set your Username to "Machine Name"/"Username" so for me it is HEATH_PC/Heath. It will later ask for you to login using your user login.

7. It should come up with a cyan windows with another window in it called connection log saying that the login failed for display 0, 1, 2 etc. What need to do is change the login details to the second Raspberry Pi user's login details and then press connect.

8. Tada!!! That should be it! Now you can use your Pi like a server or just not have an entire set up just for this itty bitty computer.

If you get any errors I might be able to help but once again, my main computer is Windows so don't think that I am some kind of Linux Legend or something I barely knew how to set locale on the terminal when I first used my Pi, it took me ages to figure out.

Now every time you want to connect to your Pi open command prompt the run the command: ssh pi@"Local IP Address of Pi" then it will ask for the password for the pi, type it out. Then it will switch from the command prompt to the Linux terminal. There you can start XRDP using the command: sudo service xrdp start Then on your computer open Remote Desktop Connection and connect to the Pi.