One-click RDP over SSH from Linux to remote Windows PC

Assumes Linux laptop to connect to a remote PC such as:

On the Linux laptop:

apt install freerdp2-x11


Remote PC IPRemote PC SSH portRemote PC RDP port (open TCP firewall)3389 (blocked by remote PC firewall)

Create executable script on the Linux laptop:


ssh -f -L 4389:localhost:3389 remoteusername@ sleep 1;

xfreerdp /v:localhost:4389

Running that script on the Linux laptop connects using RDP over SSH to the Windows computer


  • Advanced freerdp configuration (e.g. limited bandwidth)
  • xfreerdp command line options
  • If freerdp2-wayland on Wayland doesn’t work, try freerdp2-x11.

Windows to Windows SSH / RDP