LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-29-2003, 09:50 PM   #1
IgD
Member
 
Registered: Mar 2002
Location: Parts unknown
Posts: 37

Rep: Reputation: 15
Cygwin and tunneling


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.
 
Old 11-30-2003, 12:13 PM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
SSH is a seperate program. It listens on a port, when it receives data on that port it opens a tunnel and passes it on.

How about just having your program fork and launch ssh?

If you want an API then openSSL might be what you are looking for.
 
Old 11-30-2003, 09:00 PM   #3
IgD
Member
 
Registered: Mar 2002
Location: Parts unknown
Posts: 37

Original Poster
Rep: Reputation: 15
You said OpenSSL. Did you mean OpenSSH? I'm confused...
 
Old 11-30-2003, 09:31 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
OpenSSH and OpenSSL are two different applications. One is an open implementation of secure shell, while the other is an open implementation of secure sockets layer. You may want to go look at the OpenSSL engine to see if it suits your needs.
 
Old 12-01-2003, 11:42 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
//moderator.note: even though the greater subject may be security, your question isn't security related, but more in the direction of programming/networking. Since it's also not related to the Linux side of things but deals with MICROS~1 I move it to /General.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunneling Randvegeta Linux - Networking 4 09-21-2005 10:42 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 10:43 AM
incoming tunneling or tunneling via a 3rd party? JustinHoMi Linux - Networking 1 04-15-2005 01:57 PM
what is IP tunneling? Hano Linux - Networking 1 04-23-2002 11:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration