Friday, 19th April 2024

Comment posted Creating Dynamic SSH Tunnel on Windows with Plink – Scriptable SSH Tunnels on Windows by .

Recent comments by

Share this on:

Tags: , , , , , , , , , , ,

No Responses to “…”

  1. admin says:
    Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

    If you want to make sure your SSH Tunnel is always active and respawned if it dies you can create a Neverending Batch Loop and start it as a Windows service.

    :: This is a batch file. Save with file name: plink_forever.bat
      :restart
      plink saved_session_name
      goto restart
    View CommentView Comment
  2. Doppiamunnezza says:
    Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

    Hi, the scenario you depicted can work trough a proxy that requires authentication? This is the situation:
    My work pc (windows 7) connects to the internet through a proxy server that requires a username/password and i would like to RDP into it from my home pc but i can’t modify proxy configuration so i was thinking that making an ssh tunnel (reverse tunnel really) could work to reach my goal.
    Do you think your example can be adapted to my scenario?
    If not do you know of any product i can use?
    Thanks in advance

    View CommentView Comment
    • admin says:
      Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

      Hi Doppiamunnezza,

      If you have already running SSH server (Linux host) and this host could connect to your Windows remote desktop port (3389) you can use plink to forward SSH tunnelled traffic via the Linux host like so:

      plink.exe -P 22 -L 13389:windows-rdp-host.com:3389 server-username@remote-linux-server.com
      pw secretpassword -N -C

      SSH tunnel will be be available via localhost:13389. From windows command line to connect with
      Remote Desktop Client:

      mstsc.exe -v localhost:13389

      Note that connection will be a bit slow but this depends also on your internet connection between linux-server and windows host and yourself within the net where you’re.

      To do the same SSH Tunnel to foward traffic via 13389 (if you’re using a Linux desktop) issue:

      ssh -p 22 -L 13389:rdp.hec.bg:3389 hipo@pc-freak.net -v

      Hope this helps
       

      View CommentView Comment
      • Doppiamunnezza says:
        Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
        Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

        Hi, thanks for your answer but i’m not really sure i’ve understood …
        In your hypothesis the linux box (SSH Server) is in the same lan with the windows box i want to rdp into ??

        View CommentView Comment
  3. visitor says:
    Firefox 33.0 Firefox 33.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0

    your formatting blog, and content, are shit!

    View CommentView Comment