SHH Tunnel for Remote Desktop via Intermediary Server
Posted
by
Mihai Todor
on Server Fault
See other posts from Server Fault
or by Mihai Todor
Published on 2012-06-10T15:07:30Z
Indexed on
2012/06/10
16:41 UTC
Read the original article
Hit count: 309
I've seen many examples of SSH tunnels on the nets, but I'm still having no luck with this. Here's the setup:
- Windows 7 PC in a private network, sitting behind a firewall, with PowerShellInsider SSH server set up and working fine.
- Public access Linux server, which has access to the PC.
- Windows 7 laptop, at home, from which I wish to do remote desktop on the PC.
Now, here's what I've tried so far:
- SSH tunnel from my laptop to the Linux server: ssh -f my_user@LINUX_SERVER -L 6666:LINUX_SERVER_IP:6666 -N
- SSH to the Linux server where I've set up a tunnel to the PC: ssh -f 'PRIVATE_DOMAIN\my_user'@PC_NAME -L 6666:PC_IP:3389 -N
Unfortunately, I must be doing something wrong, because it doesn't seem to work. Any ideas why or, at least, any suggestions on how can I try to debug this setup? At the moment, I have access to all 3 machines (non-root on Linux), so I can test whatever I want...
© Server Fault or respective owner