In putty I can do ssh tunnel binding <$source port> to <IP_ADDR:3389>. rdp into localhost:$source_port. With that I can rdp to any windows machine remotely without problem.
However, now I got a problem. There's a windows box, the only way to access the windows box is through a linux box. So in putty I did this
linux box pub ip on the switch: 10.1.1.10/24
linux box private ip with windows box 10.2.2.2/27
windows box 10.2.2.3/27
source port = 9123 bind to 10.1.1.10:13389.
In the linux box I did the following command. ssh -R 13389:localhost:3389 10.2.2.3
So the whole idea is I will rdp into localhost:9123. It will forward to my linux's box port 13389, my linux box will forward it to the window's box 3389 which is the rdp port. However, I am running into the following issue when I do the following commands on the linux box:
#ssh -R 13389:localhost:3389 10.2.2.3 ssh: connect to host 10.2.2.3 port 22: Connection refused
Why is it connecting to the window's box port 22?
#ssh -R 13389:localhost:3389 3389:10.2.2.3 ssh: Could not resolve hostname 3389:10.2.2.3: Name or service not known
I tried several different options -L
to no aval.
[link] [comments]