This project is read-only.

Portforward to Mysql? Examples ?

Jan 16, 2013 at 2:58 AM

Hello,

 

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

 

Thanks!

Ben

Jan 16, 2013 at 6:01 PM

 

Hi,

 

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.

Thanks,

Oleg

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

Oleg,

 

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

 

Thanks,

Ben