Portforward to Mysql? Examples ?

Jan 16, 2013 at 1:58 AM



Great ssh library! I've been able to use it to tunnel and port forward to my web browser port on my server. However, I'm having issue with portforwarding to mysql.  Would the portforward source port be localhost:3306 , detestation port 192.168.#.## :3306 and the mysql (using .net connector) database host be localhost (or as well? With this portforward and mysql connection I can't seem to connect to my database. I can however use putty to connect using these settings, proving a ssh connection portforwarding to mysql server can be made, just not with the ssh.net library :(


Any examples of using the ssh.net library with portforward to connect to mysql would be great.




Jan 16, 2013 at 5:01 PM




Sorry, I personally dont have any since I dont use MySQL but you welcome to search this forum since I know few people mentioned doing it.

In fact I am trying to figure out hang problem related to portforwarding and MySQL, you can see it here


Hope it helps.



Jan 16, 2013 at 7:46 PM
Edited Jan 16, 2013 at 7:47 PM



Thanks for the examples. I believe my issues lies within portforward & host ports and mysql sever host. Hopefully I'll get some help is this post : http://sshnet.codeplex.com/discussions/429181#post987639