Setup SSH Tunnel using OpenSSH for Windows

Posted on 2005-03-05
Medium Priority
Last Modified: 2013-12-04
I have been trying to establish a MySQL connection through SSH without luck.

Server has OpenSSH for Windows installed and setup with two users Administrator and ssh_user with a group and passwd file setup in the C:\OpenSSH\etc folder.

I open a command window and type "net start opensshd" and openssh starts as a service. I've verified this by looking at it "started" in the services window.

Now I go to my development machine and open another command window and type
"plink -v -ssh -l ssh_user -pw 1234 -L 3306:localhost:3306"

It runs and says it "Opened channel for session", "Local port 3306 forwarding to localhost:3306"

Things are not working though. I've setup the built in firewall on Windows 2003 Server and blocked everything except port 22 (SSH). Shouldn't port 3306 now be going through 22 on the server and SSH server talking back with 3306?

Is there something else I need to do to setup on the server? Seems like I need to setup a tunnel on the server but all the articles I can find on google are not that helpful.

I've already got and installed OpenSSH for Windows, PuTTY, and pLink downloaded.

I want to establish a Secure Tunnel between the Server and my workstation for port 3306.
Question by:brian2k1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 13469497
Update: DUH!

Well you stay up long enough and enlightenment is bound to happen.

When I was trying to connect to MySQL on the server through the SSH tunnel I was still trying to connect to When I finally realized I needed to go to When I did that it worked as expected. And I verified the encrypted connected using the Windows built in Network Monitor.

Going through you could clearly see the username supplied for connection and read the query sent to mysql "SHOW VARIABLES LIKE 'have_openssl'"

Going through 127.0.01:3307 you could not see anything in plain text.

Anyone who can provide GOOD reference links to MySQL replication setup or SSH on Windows will get the points.

Accepted Solution

tmehmet earned 2000 total points
ID: 13526565

ssh for windows - tools, setup, admin type info and resources


    * OpenSSH Windows/Mac page: http://www.openssh.com/windows.html
    * PuTTY, pscp and related tools: http://www.chiark.greenend.org.uk/~sgtatham/putty/
    * Configuring PuTTY: http://www.jfitz.com/tips/putty_config.html
    * WinSCP: http://winscp.sourceforge.net/eng/
    * Tera Term Pro: http://hp.vector.co.jp/authors/VA002416/teraterm.html
    * TTSSH, (Tera Term Pro SSH extension): http://www.zip.com.au/~roca/ttssh.html
    * Cygwin: http://www.cygwin.com/
    * XFree86 for Cygwin: http://cygwin.com/xfree/
    * KDE for Cygwin: http://kde-cygwin.sourceforge.net/
    * Gnome for Cygwin: http://cygnome.sourceforge.net/
    * Configuring Cygwin's SSH server: http://tech.erdelynet.com/cygwin-sshd.asp
    * Network Simplicity's SSH server: http://sshwindows.sourceforge.net/
    * Minimal SSH server installation: http://www.certaintysolutions.com/tech-advice/ssh_on_nt.html
    * ssh tunnelfor vnc: http://pigtail.net/LRP/vnc/

Commercial windows ssh tools;


MySQL & SSH from windows



Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
OfficeMate Freezes on login or does not load after login credentials are input.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question