Using ssh tunnel to connect to Remote Desktop

Install OpenSSH using PowerShell

To install OpenSSH using PowerShell, run PowerShell as an Administrator.
To make sure that OpenSSH is available, run the following cmdlet:

Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

This should return the following output if neither are already installed:

Name  : OpenSSH.Client~~~~0.0.1.0
State : NotPresent

Name  : OpenSSH.Server~~~~0.0.1.0
State : NotPresent

Then, install the client components as needed:

# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

This should return the following output:

Path          :
Online        : True
RestartNeeded : False

ssh -L 13390:<remotehost>:3389 username@<proxyhost>

sudo without password

sudo visudo
username ALL=(ALL:ALL) NOPASSWD:ALL