1
2
I have spent several session trying to figure this out, and tried to follow many other posts. But for some reason this is confusing to me and none of the other situations "seem" to apply.
What I want to do:
NOTE: NONE of these machines are on the same LAN.
Workstation A - A linux machine somewhere/anywhere on internet
Server - Linux Virtual Private Server out on the Internet Internet IP address 1.2.3.4
Workstation B - My Home Windows machine running RDP Internet IP address 5.6.7.8 NAT IP Address 192.168.10.51
I want the Linux Server to act as an SSH "Gateway" so I can can RDP From Workstation A to Workstation B
Workstation B, is on a restrictive ISP it can't run a sshd but can connect to Server using SSH Client like Putty.
Here is my lastest effort:
So from Workstation B:
Using Putty: Host Name ( Ip Address ) 1.2.3.4
Port 22
SSH Tunnel Source Port 3389
Local Port localhost:3389
(updated) Checked on "Local ports accept connections from other hosts" Not Checked "Remote hosts do the same" Selected "Local" and "Auto" under destination
Then on Server:
ssh -p 33890 -L 9833:192.168.10.51:3389 rdpuser@5.6.7.8
Then on Workstation A:
rdesktop 1.2.3.4:33890
I have tried a bunch of variations on this but I am not even certain I have a correct understanding of the whole ssh tunnel.
Also, I have a specific need for an SSH tunnel and cannot install sshd on Worstation B. I actually know how to set up PPTPD, IPsec and others but that wont work here. So if you have a different solution it is not applicable. I am only looking as to wether or not my scenario can be accomplished ( cause I am confused ) and what I might be doing wrong.
Sorry if this is long, trying to not be vague.
I looked at this post: [how-to-tunnel-windows-remote-desktop-through-ssh-using-a-linux-box][1] It was VERY close to my situation but the linux box is not on my local network.
You skipped some details about your putty configuration. What mode did you use when setting up the tunnel? – Zoredache – 2014-01-16T18:11:26.220
Hmm not sure what mode means, "Local ports accepts accept connections from other hosts" was checked. "Remote Ports do the same" is unchecked. Local and Auto selected under destination in tunnel on putty. – None – 2014-01-16T18:21:14.607
Based on your comment, your conf is backwards. See: http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter4.html#config-ssh-portfwd-localhost
– Zoredache – 2014-01-16T18:29:31.097