Desktop sharing using ssh tunnel

Share desktop of A to B with C as the hop. You’ll need access to your own server (C).

Execute on A: (assuming is the ip of machine A)

% ssh -R 3390: -l username
log in and execute
ping -i 5
to prevent the connection from timing out

Execute on B

% ssh -l username -L 3391:localhost:3390

This means that you will be able to connect at localhost:3391 from your home computer and everything will be forwarded to

Point your remote desktop connection to localhost:3391