Connect to Windows over RDP from Linux with xfreerdp and rdesktop
xfreerdp and rdesktop command examples to open a Windows remote desktop from Linux.
Examples of connecting to a Windows remote desktop (RDP) from Linux with xfreerdp (FreeRDP) and rdesktop.
xfreerdp
Connect with a fixed resolution, by host name or IP address:
xfreerdp -g 1600x900 -u app_user WINDOWS_PC_NAME_OR_IP
With the local domain (.) and a password:
xfreerdp -g 1600x900 -u app_user -d . -p '<PASSWORD>' 192.0.2.10
Syntax using /option style arguments:
xfreerdp /size:1600x900 /u:app_user /d:. /p:'<PASSWORD>' /v:192.0.2.11
rdesktop
rdesktop -k fr-be -u app_user -p '<PASSWORD>' 192.0.2.12
-k fr-be selects the Belgian keyboard layout. Possible output on failure:
Core(warning): Certificate received from server is NOT trusted by this system, an exception has been added by the user to trust this specific certificate.
Failed to initialize NLA, do you have correct Kerberos TGT initialized ?
Failed to connect, CredSSP required by server (check if server has disabled old TLS versions, if yes use -V option).
Notes
- A "CredSSP required by server" error means the server enforces NLA: prefer
xfreerdp. - Avoid typing the password on the command line (it stays in the shell history).