Using rdesktop or freerdp to connect remotely to a Windows Machine

Microsoft offers its tool Remote Desktop freely for Windows and macOS. This handy tool allows to connect remotely to another Windows machine in the network. Remote Desktop does not need the installation of a software package on the remote machine, but only some remote login configuration.

For UNIX-based OSes like Linux, there are two alternative tools using the Remote Desktop protocol: rdesktop and freerdp. To connect to a configured Windows machine, you have to use one of the following commands depanding on the tool you use:

rdesktop [remote_windows_machine] -g [resolution e.g. 1920x1170] -u [username]

xfreerdp [remote_windows_machine] -g [resolution e.g. 1920x1170] -u [username]