Is the following possible
There is a server (server1) with sshd running.
In a internal network, a MySQL server (server2) is connected with server1
The Server1 - Server2 connection doesn't need to be protected
Program on a client computer:
(Sc)SSHClient.HostName:= server1
MyConnection.Server:= server2
MyConnection.port:= 3306
MyConnection.IOHandler:= MySSHIOHandler
MySSHIOHandler.Client:= SSHClient.
So server1 is only used for login, crypting and decrypting
Would be nice. Thanks for your attention
Client <-> Server <-> MySQL Server
Re: Client <-> Server <-> MySQL Server
Yes, it is possible. You specified the connecting parameters properly.teunis wrote:Is the following possible
There is a server (server1) with sshd running.
In a internal network, a MySQL server (server2) is connected with server1
The Server1 - Server2 connection doesn't need to be protected
Program on a client computer:
(Sc)SSHClient.HostName:= server1
MyConnection.Server:= server2
MyConnection.port:= 3306
MyConnection.IOHandler:= MySSHIOHandler
MySSHIOHandler.Client:= SSHClient.
So server1 is only used for login, crypting and decrypting
Would be nice. Thanks for your attention
If the SSH server is located on a computer on LAN 2, which you need to connect to, you should specify the IP address of this computer in the HostName property of ScSSHClient.teunis wrote:I thought one feature of SSH is to forward not only to a port but
also to an IP address.
In that way a computer on LAN I can via internet connect secure to
a computer on LAN II (Wrong / Right ?)
If the SSH server is located on the server in LAN 2, specify the server IP address in the ScSSHClient.HostName property, and the IP address or name of a computer on LAN 2, which you need to connect to, in the ScSSHChannel.DestHost property.