2

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.

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

1 Answer 1

1

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:127.0.0.1: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).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .