PDA

View Full Version : Tunneling Terminal Services over console


algonco
14th May 2008, 17:25
Hi,
At work (winxp pc) i use putty to connect a remote win2000 by terminal server using a ssh tunel. (this way) (http://www.strw.leidenuniv.nl/local/computers/it_local/tunnels/putty-TS-tunnel.html)
I am trying to do the same in Linux, but i do not know how.
any idea?

topdog
15th May 2008, 10:04
It is called port forwarding in the ssh world,

ssh -L 3389 windows_ip:3389 user@host

algonco
15th May 2008, 10:34
In my case, there are 2 pc in the remote office:
pc1 (linux) with ssh server at port 22. The port is open by the router.
pc2 (windows) terminal server.
Then i had tried
~$ ssh -L 3389 private_ip_pc2:3389 user@public_ip_office
Bad local forwarding specification '3389'

topdog
15th May 2008, 10:56
Sorry about that it is supposed to be like this
ssh -L 3389:windows_private_ip:3389 user@linux_public_ip_remote

algonco
15th May 2008, 13:12
it works.
Thanks a lot.