No KYC VPS
TutorialsNov 13, 20265 min readBy the No KYC VPS team

How to Connect to a Windows RDP Server from Linux (Remmina and xfreerdp)

Connect to a Windows RDP server from Linux with Remmina or the xfreerdp command line: install, sign in, share folders and clipboard, and fix common errors.

Linux has two good RDP clients: Remmina with a graphical interface, and xfreerdp from the FreeRDP project for the command line. Both connect to any Windows RDP server, including one rented from us. If you are new to the protocol, read what RDP is first.

Option 1: Remmina

sudo apt install remmina remmina-plugin-rdp   # Debian / Ubuntu
sudo dnf install remmina                        # Fedora
  1. Open Remmina and click the + button.
  2. Set Protocol to RDP.
  3. Enter the server IP address, the username and the password.
  4. Choose a resolution, or tick Use client resolution, then click Save and Connect.

Option 2: xfreerdp

sudo apt install freerdp2-x11
xfreerdp /v:203.0.113.10 /u:Administrator /dynamic-resolution +clipboard /cert:tofu
  • /v: is the server address and /u: the username. You are asked for the password.
  • /dynamic-resolution resizes the remote desktop when you resize the window.
  • +clipboard shares the clipboard in both directions.
  • /cert:tofu trusts the server certificate the first time and warns if it changes later.
  • To share a local folder: /drive:share,/home/you/share

On newer systems the package and command may be called freerdp3-x11 and xfreerdp3. The options are the same.

Make it comfortable

  • /size:1920x1080 sets a fixed window size instead of dynamic resizing.
  • /f starts in full screen, and Ctrl+Alt+Enter switches between full screen and a window.
  • /network:auto lets FreeRDP adapt to your connection speed.
  • Avoid typing the password with /p: on the command line, because it ends up in your shell history.

Save the connection

In Remmina, saved profiles appear in the main list, so you can connect with a double-click. With xfreerdp, put your options in a small shell script or alias and leave out the password.

Authentication errors

Windows servers normally require network level authentication, and both clients support it. If you see an authentication error even with the right password, check that the account is allowed to sign in remotely, as described below.

Common problems

  • Connection refused or timeout: check the IP address and that TCP port 3389 is allowed in the firewall of the server and your network.
  • Authentication failed: check the username and password, and that the account is a member of the Remote Desktop Users group.
  • Black screen: see how to fix an RDP black screen.

Keep the server safe too: follow 10 steps to secure a Windows RDP server.

Frequently asked questions

Which RDP client is best on Linux?

Remmina for a graphical interface, xfreerdp for the command line and scripts.

How do I share a folder over RDP from Linux?

With xfreerdp add /drive:share,/path/to/folder. In Remmina use the Share folder option.

Why does xfreerdp ask about a certificate?

The server uses a self-signed certificate. /cert:tofu trusts it the first time and warns if it changes.

Which port does it use?

TCP 3389 by default.

Which client is better, Remmina or xfreerdp?

Remmina is easier for saved connections. xfreerdp gives full control from the command line and works well in scripts.

Can I use RDP through a VPN or an SSH tunnel?

Yes. If you can reach the server through a VPN or a tunnel, you can keep port 3389 closed to the internet and connect to the tunnelled address instead.

Why is the screen blurry?

Use dynamic resolution or set the window size to match your screen, and avoid scaling the window.