Remote Desktop with Windows VM and RDP [network/remote-desktop-windows-vm]
Remote Desktop with Windows VM and RDP [network/remote-desktop-windows-vm]
Occasionally I run a Windows VM inside my Linux laptop. I need to access it remotely as well. Luckily enough, a tunnel to the virtual machine network can be opened with a one-liner using SSH:
ssh -L 3389:192.168.122.84:3389 <device-running-vm>
This maps 192.168.122.84:3389
(IP address of the virtual machine in my case,
and the default port of Microsoft RDP service) on the remote host to
localhost:3389
. An RDP client can then connect to 127.0.0.1
to access the
remote virtual machine. This time I can just use the Microsoft RDP client on
mobile to log in.