How to Use Windows Remote Desktop to Access Linux and Vice Versa
This step‑by‑step guide shows how to configure Windows Remote Desktop to connect to a Linux desktop using xrdp and how to remotely access a Windows desktop from Linux, covering installation, firewall settings, and credential verification.
1. Windows Remote Desktop to Linux
We use a CentOS 7.7 host as the Linux target.
# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)Check if the GNOME desktop is installed: # rpm -qa | grep gnome-desktop If no output, install GNOME: # yum -y groups install "GNOME Desktop" Install the xrdp package (enable EPEL first):
# yum -y install epel-release
# yum -y install xrdpStart xrdp and enable it at boot:
# systemctl start xrdp
# systemctl enable xrdpOpen the Remote Desktop client (Win+R → mstsc) and connect. If the connection fails, adjust the firewall:
# systemctl stop firewalld // disable firewall
# firewall-cmd --permanent --zone=public --add-port=3389/tcp
# firewall-cmd --reloadAfter opening port 3389 or disabling the firewall, reconnect, enter the Linux username and password, and the remote desktop session starts successfully.
2. Linux Remote Desktop to Windows
Preparation steps: ensure the Linux host has GNOME installed, enable Remote Desktop on the Windows machine, and allow the RDP port (3389) through the Windows firewall or disable the firewall.
On the Linux side, launch the Remote Desktop Viewer, choose the RDP protocol, enter the Windows host IP, and click Connect.
Enter the Windows username and password; after successful authentication, the Windows desktop is displayed.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
