Tunneling Terminal Services over console

Discussion in 'Technical' started by algonco, May 14, 2008.

  1. algonco

    algonco New Member

    Hi,
    At work (winxp pc) i use putty to connect a remote win2000 by terminal server using a ssh tunel. (this way)
    I am trying to do the same in Linux, but i do not know how.
    any idea?
     
  2. topdog

    topdog Active Member HowtoForge Supporter

    It is called port forwarding in the ssh world,

    Code:
    ssh -L 3389 windows_ip:3389 [email protected] 
     
  3. algonco

    algonco New Member

    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
    Code:
    ~$ ssh -L 3389 private_ip_pc2:3389 [email protected]_ip_office
    Bad local forwarding specification '3389'
     
  4. topdog

    topdog Active Member HowtoForge Supporter

    Sorry about that it is supposed to be like this
    Code:
    ssh -L 3389:windows_private_ip:3389 [email protected]_public_ip_remote
     
  5. algonco

    algonco New Member

    it works.
    Thanks a lot.
     

Share This Page