I'm using SSH for tunneling between a client machine and a server. The purpose of this tunnel is for secure DB transactions between a Windows application and a Linux MySQL 3 server.
On the Windows machine, I open a dos shell and do this to set up the tunnel:
ssh
username@server.com -v -2 -N -f -L 3306:localhost:3306
Then I run my DB application.
What I'd like to do is set up the tunnel inside my application using some sort of API. Is SSH just a wrapper for this cygwin.dll file? If not, is there a ssh.dll file that has the same functionality as ssh.exe?
I would appreciate any insight you can give me.