XfreeRDP Linux клиент Windows терминал сервиса с интерфейсом командной строки из пакета freerdp-x11 или freerdp2-x11. Текущая версия поддерживает Windows NT Server, Windows 2000 Terminal Server, Windows XP, Windows 2003 Server, Windows Vista, Windows 2008 Server, Windows 7.

Установка xfreerdp:

sudo apt install freerdp2-x11

Параметры командной строки xfreerdp:

xfreerdp --help

FreeRDP - A Free Remote Desktop Protocol Implementation
See www.freerdp.com for more information

Использование: xfreerdp [file] [options] [/v:<server>[:port]]

    /flag (enables flag)
    /option:<value> (задает параметр со значением)
    +toggle -toggle (enables or disables toggle, where '/' is a synonym of '+')

    /v:<server>[:port]   	Server hostname
    /port:<number>       	Порт сервера
    /w:<width>           	Ширина
    /h:<height>          	Высота
    /size:<width>x<height> or <percent>%	Размер экрана
    /f                   	Полноэкранный режим
    /bpp:<depth>         	Session bpp (глубина цвета)
    /kbd:0x<layout id> or <layout name>	Keyboard layout
    /kbd-list            	List keyboard layouts
    /kbd-type:<type id>  	Keyboard type
    /kbd-subtype:<subtype id>	Keyboard subtype
    /kbd-fn-key:<function key count>	Keyboard function key count
    /admin               	Admin (or console) session
    /restricted-admin    	Restricted admin mode
    /pth:<password hash> 	Pass the hash (restricted admin mode)
    /client-hostname:<name>	Client Hostname to send to server
    /multimon            	Use multiple monitors
    /span                	Span screen over multiple monitors
    /workarea            	Use available work area
    /monitors:<0,1,2...> 	Select monitors to use
    /monitor-list        	List detected monitors
    /t:<title>           	Window title
    -decorations (default:on)	Window decorations
    /smart-sizing:<width>x<height>	Scale remote desktop to window size
    /a                   	Addin
    /vc                  	Static virtual channel
    /dvc                 	Dynamic virtual channel
    /u:[<domain>\]<user> or <user>[@<domain>]	Username
    /p:<password>        	Password
    /d:<domain>          	Domain
    /g:<gateway>[:port]  	Gateway Hostname
    /gu:[<domain>\]<user> or <user>[@<domain>]	Gateway username
    /gp:<password>       	Gateway password
    /gd:<domain>         	Gateway domain
    /gt:<rpc|http|auto>  	Gateway transport type
    /gateway-usage-method:<direct|detect>	Gateway usage method
    /proxy:[<protocol>://]<host>:<port>	Proxy (see also environment variable below)
    /load-balance-info:<info string>	Load balance info
    /app:<executable path> or <||alias>	Remote application program
    /app-name:<app name> 	Remote application name for user interface
    /app-icon:<icon path>	Remote application icon for user interface
    /app-cmd:<parameters>	Remote application command-line parameters
    /app-file:<file name>	File to open with remote application
    /app-guid:<app guid> 	Remote application GUID
    -compression (default:on)	Enable compression
    /compression-level:<level>	Compression level (0,1,2)
    /shell               	Alternate shell
    /shell-dir           	Shell working directory
    /sound:[sys][dev][format][rate][channel][latency][quality]	Audio output (sound)
    /microphone:[sys][dev][format][rate][channel]	Audio input (microphone)
    /audio-mode          	Audio output mode
    /multimedia:[sys][dev][decoder]	Redirect multimedia (video)
    /network             	Network connection type
    /drive               	Redirect drive
    +drives (default:off)	Redirect all drives
    +home-drive (default:off)	Redirect home drive
    +clipboard (default:off)	Redirect clipboard
    /serial              	Redirect serial device
    /parallel            	Redirect parallel device
    /smartcard           	Redirect smartcard device
    /printer             	Redirect printer device
    /usb:[dbg][dev][id|addr][auto]	Redirect USB device
    +multitouch (default:off)	Redirect multitouch input
    +gestures (default:off)	Consume multitouch input locally
    +unmap-buttons (default:off)	Let server see real physical pointer button
    /echo                	Echo channel
    /disp                	Display control
    +fonts (default:off) 	Enable smooth fonts (ClearType)
    +aero (default:off)  	Enable desktop composition
    +window-drag (default:off)	Enable full window drag
    +menu-anims (default:off)	Enable menu animations
    -themes (default:on) 	Enable themes
    -wallpaper (default:on)	Enable wallpaper
    /gdi:<sw|hw>         	GDI rendering
    /gfx:<RFX>           	RDP8 graphics pipeline (experimental)
    +gfx-thin-client (default:off)	RDP8 graphics pipeline using thin client mode
    +gfx-small-cache (default:off)	RDP8 graphics pipeline using small cache mode
    +gfx-progressive (default:off)	RDP8 graphics pipeline using progressive codec
    /rfx                 	RemoteFX
    /rfx-mode:<image|video>	RemoteFX mode
    /frame-ack:<number>  	Number of frame acknowledgement
    /nsc                 	Enable NSCodec
    /jpeg                	Enable JPEG codec
    /jpeg-quality:<percentage>	JPEG quality
    -nego (default:on)   	Enable protocol security negotiation
    /sec:<rdp|tls|nla|ext>	force specific protocol security
    -sec-rdp (default:on)	rdp protocol security
    -sec-tls (default:on)	tls protocol security
    -sec-nla (default:on)	nla protocol security
    +sec-ext (default:off)	nla extended protocol security
    /tls-ciphers:<netmon|ma|ciphers>	Allowed TLS ciphers
    /cert-name:<name>    	certificate name
    /cert-ignore         	ignore certificate
    /cert-tofu           	Automatically accept certificate on first connect
    /pcb:<blob>          	Preconnection Blob
    /pcid:<id>           	Preconnection Id
    /spn-class:<service class>	SPN authentication service class
    +credentials-delegation (default:off)	Disable credentials delegation
    /vmconnect:<vmid>    	Hyper-V console (use port 2179, disable negotiation)
    -authentication (default:on)	authentication (hack!)
    -encryption (default:on)	encryption (hack!)
    -grab-keyboard (default:on)	grab keyboard
    -toggle-fullscreen (default:on)	Alt+Ctrl+Enter toggles fullscreen
    -mouse-motion (default:on)	mouse-motion
    /parent-window:<window id>	Parent window id
    -bitmap-cache (default:on)	Enable bitmap cache
    -offscreen-cache (default:on)	Enable offscreen bitmap cache
    +glyph-cache (default:off)	Glyph cache (EXPERIMENTAL)
    /codec-cache:<rfx|nsc|jpeg>	bitmap codec cache
    -fast-path (default:on)	Enable fast-path input/output
    /max-fast-path-size:<size>	specify maximum fast-path update size
    /max-loop-time:<time>	specify maximum time in milliseconds spend treating packets
    +async-input (default:off)	asynchronous input
    +async-update (default:off)	asynchronous update
    +async-transport (default:off)	asynchronous transport (unstable)
    +async-channels (default:off)	asynchronous channels (unstable)
    /wm-class:<class name>	set the WM_CLASS hint for the window instance
    /version             	print version
    /help                	print help
    /play-rfx:<pcap file>	Replay rfx pcap file
    +auth-only (default:off)	Authenticate only.
    +auto-reconnect (default:off)	Automatic reconnection
    /auto-reconnect-max-retries:<retries>	Automatic reconnection maximum retries, 0 for unlimited [0,1000]
    /reconnect-cookie:<base64 cookie>	Pass base64 reconnect cookie to the connection
    +print-reconnect-cookie (default:off)	Print base64 reconnect cookie after connecting
    +heartbeat (default:off)	Support heartbeat PDUs
    +multitransport (default:off)	Support multitransport protocol
    /assistance:<password>	Remote assistance password
    /encryption-methods:<40,56,128,FIPS>	RDP standard security encryption methods
    /from-stdin          	Read credentials from stdin, do not use defaults.
    /buildconfig         	print the build configuration
    /log-level:[OFF|FATAL|ERROR|WARN|INFO|DEBUG|TRACE]	Set the default log level, see wLog(7) for details
    /log-filters:<logger tag>:<log level>[, <logger tag>:<log level>][, ...]]	Set logger filters, see wLog(7) for details
    /pwidth:<physical width (mm)>	Physical width of display (in millimeters)
    /pheight:<physical height (mm)>	Physical height of display (in millimeters)
    /orientation:<orientation>	Orientation of display in degrees (0, 90, 180, 270)
    /scale:<scale amount (%%)>	Scaling factor of the display (value of 100, 140, or 180)
    /scale-desktop:<scale amount (%%)>	Scaling factor for desktop applications (value between 100 and 500)
    /scale-device:<scale amount (%%)>	Scaling factor for app store applications (100, 140, or 180)
    /action-script:<file name>	Action script

    xfreerdp connection.rdp /p:Pwd123! /f
    xfreerdp /u:CONTOSO\JohnDoe /p:Pwd123! /v:rdp.contoso.com
    xfreerdp /u:JohnDoe /p:Pwd123! /w:1366 /h:768 /v:
    xfreerdp /u:JohnDoe /p:Pwd123! /vmconnect:C824F53E-95D2-46C6-9A18-23A5BB403532 /v:

Clipboard Redirection: +clipboard

Drive Redirection: /drive:home,/home/user
Smartcard Redirection: /smartcard:<device>
Serial Port Redirection: /serial:<name>,<device>,[SerCx2|SerCx|Serial],[permissive]
Serial Port Redirection: /serial:COM1,/dev/ttyS0
Parallel Port Redirection: /parallel:<device>
Printer Redirection: /printer:<device>,<driver>

Audio Output Redirection: /sound:sys:oss,dev:1,format:1
Audio Output Redirection: /sound:sys:alsa
Audio Input Redirection: /microphone:sys:oss,dev:1,format:1
Audio Input Redirection: /microphone:sys:alsa

Multimedia Redirection: /multimedia:sys:oss,dev:/dev/dsp1,decoder:ffmpeg
Multimedia Redirection: /multimedia:sys:alsa
USB Device Redirection: /usb:id,dev:054c:0268

For Gateways, the https_proxy environment variable is respected:
    export https_proxy=http://proxy.contoso.com:3128/
    xfreerdp /g:rdp.contoso.com ...

More documentation is coming, in the meantime consult source files