I am trying to modify some existing applications to provide secure remote access to a database. Not sure if this is the way to go about it, but seems to be working....
On a Delphi Win32 database application connecting from a client to a mysql database on a remote server with Mysql only listining on Localhost and ssh server installed,
I have set up a ssh connection using SecureBridge as follows:
ScFileStorage with the Key file
ScSSHClient
KeyStorage: ScFileStorage
HostName: serverIP
Port:22
User: server user id
password: password
ScSSHChannel
DestHost: localhost
DestPort: 3306
Source Port: 22
Then Using A TSQLConnection (dbexpress)
Using MySQL Direct by CoreLab
Set HostName: localhost:22
username mysql_username
etc.
This seems to work. Can anyone tell me if this is actually a secure connection?
Thanks,
Peter
dbexpres and SecureBridge
to clarify
Sorry, maybe the post is a bit confusing. The situation is this (sorry if some of this is too obvious, I am a bit new at this);
To keep things secure, Mysql on the server is only listining to localhost. So I want connections from remote clients through an ssh tunnel for access to the database.
The applications are written in Delphi 2005/2007 using dbExpress drivers.
I found that with SecureBridge, I can create a tunnel with sshClient and sshChannel in the datamodule, then using the dbexpress Mysql (Direct By Corelab) driver tell the TSQLConnection to connect to hostname: localhost:22 and it will connect, apparently through the tunnel.
So my question is am I somehow just piggybacking on a open channel and not actually sending encrypted information, or does SecureBridge encrypt everything going out of Port 22?
It seems like it should be working as the sshserver is accepting and (hopefully) un-encrypting the data and dumping it off to mysql on localhost.
Thanks for any help or advice anyone can offer,
Peat
To keep things secure, Mysql on the server is only listining to localhost. So I want connections from remote clients through an ssh tunnel for access to the database.
The applications are written in Delphi 2005/2007 using dbExpress drivers.
I found that with SecureBridge, I can create a tunnel with sshClient and sshChannel in the datamodule, then using the dbexpress Mysql (Direct By Corelab) driver tell the TSQLConnection to connect to hostname: localhost:22 and it will connect, apparently through the tunnel.
So my question is am I somehow just piggybacking on a open channel and not actually sending encrypted information, or does SecureBridge encrypt everything going out of Port 22?
It seems like it should be working as the sshserver is accepting and (hopefully) un-encrypting the data and dumping it off to mysql on localhost.
Thanks for any help or advice anyone can offer,
Peat