In a world where cross-platform connectivity is key, the ability to connect to a remote Windows system from a Linux command line can be a game-changer. Thanks to powerful tools like xfreerdp, this process has become seamless and efficient.
In this guide, we will explore how to connect to a remote Windows system using xfreerdp, empowering Linux users with remote desktop capabilities.
Before you can use xfreerdp, you need to install it. On most Linux distributions, you can use the package manager to do this. For example, on Ubuntu / Debian and Linux Mint, run following apt command
$ sudo apt update $ sudo apt install freerdp2-x11 -y
For RHEL based distributions like Rocky Linux, AlmaLinux and Fedora, run
$ sudo dnf install freerdp -y
Connecting Remote Windows System with xfreerdp
Post installation, we can take the RDP of remote windows machine using following xfreerdp command,
$ xfreerdp /u:”username” /v:<Remote-Windows-IP>:3389
Replace <username> with your windows username and <remote_windows_ip> with the IP address or hostname of the Windows system.
$ xfreerdp /u:"Administrator" /v:184.108.40.206:3389
It prompts you to trust the certificate, Press Y and then enter password of your remote windows systems administrator password. After entering the credentials, we will connect to remote windows system as shown below:
xfreerdp offers a range of advanced options that allow you to customize your remote desktop experience. For instance, you can adjust the screen resolution, enable sound, specify a domain, and much more. Here’s an example:
$ xfreerdp /v:<remote_windows_ip> /u:<username> /p:<password> /w:800 /h:600 /sound /d:<domain>
- /w and /h: Set the desired width and height of the remote desktop window.
- /sound: Enable sound redirection.
- /d: Specify the domain if needed.
Example for customize remote desktop size,
$ xfreerdp /u:"Administrator" /v:220.127.116.11:3389 /w:800 /h:600
Note: Before taking RDP, please make sure remote desktop option is enabled in remote windows system.
That’s all from this guide, I hope you have found it useful and informative. Please don’t hesitate to post your queries and feedback in below comments section.
xfreerdp empowers Linux users to effortlessly connect to remote Windows systems directly from the command line. Whether you’re managing servers, troubleshooting issues, or accessing Windows applications, xfreerdp streamlines the process while ensuring a secure and responsive experience. Embrace the power of cross-platform connectivity and enhance your remote desktop capabilities with xfreerdp today!