Port forwarding
Edit /etc/ssh/sshd_config
and set GatewayPorts
to yes
in the remote host.
Forward port 33389 in the remote host to 3389 in the local machine (run in local)
ssh -f -N -T -R 0.0.0.0:33389:localhost:3389 {user}@{remote}
Using lower ports can cause permission error, because root is needed.
Tags linux command