I am using PuTTY to connect to remote MySQL server via SSH tunnel. I will be specifying the source port and destination port and I will be using source port on MySQL Workbench to connect to remote MySQL server.

enter image description here

Is there similar feature on the WinSCP?

I want to to setup a tunnel on WinSCP, so that I can use it in MySQL workbench. I tried tunnel option on the connection menu, it didn't work.

  • Why do you want to use WinSCP for this? – Martin Prikryl Oct 17 '16 at 12:17
  • @MartinPrikryl Just to know, Whether WinSCP has that kind of functionality. – Muthu Oct 17 '16 at 12:26
  • You can add a custom command for this though. See my updated answer. – Martin Prikryl Oct 17 '16 at 12:48

No. WinSCP connection tunneling function is to connect to an SSH server that is accessible via another SSH server only.

Hence it tunnels only port 22. You cannot use it to tunnel any other port (MySQL).

Though if you ask because you have WinSCP opened more frequently than PuTTY, you can at least add a quick button/command to open the tunnel (e.g. using the Plink tool).

Just add a local custom command like:

"C:\Program Files (x86)\PuTTY\plink.exe" -ssh !U@!@ -L 3306: -N

You can actually even use the PuTTY itself (putty.exe), if you want to make use of the opened session (remove the -N switch).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.