Skip to main content

Prerequisites

  • FreeRDP installed on your system. If you haven’t installed it yet, see the Installation guide.
  • A Windows machine (or any host running an RDP server such as xrdp or gnome-remote-desktop) with Remote Desktop enabled.
  • The hostname or IP address, a username, and password for the remote machine.

Connect with xfreerdp

1

Open a terminal

Open a terminal on your Linux or macOS machine.
2

Run xfreerdp with your connection details

Replace hostname, username, and password with your actual values:
xfreerdp /v:hostname /u:username /p:password
A window will open showing the remote desktop. If the server presents an unknown certificate, xfreerdp will prompt you to accept or reject it.
3

Accept the server certificate (first connection)

On your first connection to a host, xfreerdp displays a certificate fingerprint and asks whether to trust it:
Do you trust the above certificate? (Y/T/N)
  • Enter Y to trust and remember the certificate permanently.
  • Enter T to trust it for this session only.
  • Enter N to abort the connection.
Only use /cert:ignore in trusted lab or test environments. Skipping certificate verification exposes your session to man-in-the-middle attacks.

Common connection flags

FlagDescription
/v:host[:port]Server hostname or IP, with optional port (default: 3389)
/u:usernameUsername
/p:passwordPassword
/w:widthWindow width in pixels
/h:heightWindow height in pixels
/fStart in fullscreen mode
/cert:ignoreSkip certificate verification
/soundEnable audio output redirection
/drive:name,/local/pathRedirect a local directory to the remote session
+clipboardEnable clipboard redirection

Example: set resolution and enable clipboard

xfreerdp /v:192.168.1.100 /u:JohnDoe /p:Pwd123! /w:1366 /h:768 +clipboard

Example: fullscreen with audio

xfreerdp /v:rdp.contoso.com /u:JohnDoe /p:Pwd123! /f /sound

Example: redirect a local drive

xfreerdp /v:192.168.1.100 /u:JohnDoe /p:Pwd123! /drive:home,/home/user

Example: connect on a non-default port

xfreerdp /v:192.168.1.100:4489 /u:JohnDoe /p:Pwd123! /w:1366 /h:768

Example: domain user

xfreerdp /v:rdp.contoso.com /u:CONTOSO\\JohnDoe /p:Pwd123!

Example: use a saved .rdp file

xfreerdp connection.rdp /p:Pwd123! /f

xfreerdp keyboard shortcuts

Once connected, the following keyboard shortcuts are available inside the xfreerdp window:
ShortcutAction
Right CtrlRelease keyboard and mouse grab
Ctrl+Alt+ReturnToggle fullscreen
Ctrl+Alt+MMinimize the window
Ctrl+Alt+CToggle remote control in a remote assistance session

xfreerdp vs sdl-freerdp

FreeRDP ships two graphical clients. Both accept the same command-line flags.
xfreerdp is the X11 client. It runs on any Linux desktop that provides an X display (including XWayland). It is the most widely used FreeRDP client and is available in most Linux distribution package repositories.
xfreerdp /v:hostname /u:username /p:password

Next steps

Installation

Install pre-built packages for Linux, macOS, Windows, Android, and iOS.

Building from source

Compile FreeRDP yourself with custom options.

Build docs developers (and LLMs) love