Linux – Tunnel using PuTTY – equivalent for ssh command

linuxputtysshtunnel

I am trying to connect to a remote server, based on the instructions given on this page:
https://bokeh.pydata.org/en/latest/docs/user_guide/server.html#ssh-tunnels

It suggests to create a tunnel from my local machine to my server using the command:

ssh -NfL localhost:5006:localhost:5006 user@remote.host

However my local machine is Windows – being a beginner programmer I have trouble figuring out how to reproduce the above mention command, but with PuTTY.

Could anyone help me out with that?

Thanks

Best Answer

You can do this directly with Putty command line:

putty.exe -L 5006:<remote_host>:5006 -P 22 -l <user> -pw <pwd>

where

  • <remote_host> is your remote host (running the server listening on port 5006)
  • <user>/<pwd> are the credentials to access via SSH to <remote_host>

assuming SSH port is 22

Related Question