Page 1 of 1
SSH Tunnel
Posted: Thu 06 Mar 2014 13:01
by tcflam
Hi, I can't find any SSH properties in UniDAC. Our MySQL connection is using SSH tunnel. So how can I config "UniConnection"?
Thanks!
Re: SSH Tunnel
Posted: Thu 06 Mar 2014 13:07
by tcflam
I'm using UniDAC 5.2.5
Re: SSH Tunnel
Posted: Thu 06 Mar 2014 14:10
by tcflam
Hi, I checked that can using your product "SecureBridge" for build up SSH connection. Any example can download for how to build MySQL connection by "SecureBridge".
Thanks!
Re: SSH Tunnel
Posted: Thu 06 Mar 2014 14:13
by AlexP
Hello,
If you are working via SSH, you should use SecureBridge in a bundle with UniDAC
You can see an example of UniDAC and SecureBridge co-working in the demo projects: ..\Devart\UniDAC for ..\Demos\TechnologySpecific\SecureBridge\
Re: SSH Tunnel
Posted: Thu 06 Mar 2014 14:48
by tcflam
Hi AlexP, I found the path. But I got the error when open the demo file. It prompts "Error creating form: ancestor for 'TDemoFrame' not found". How can I solve it?
Thanks!
Re: SSH Tunnel
Posted: Thu 06 Mar 2014 14:52
by tcflam
Hi AlexP, I found out how to open it. I will study the demo.
Thanks!
Re: SSH Tunnel
Posted: Thu 13 Mar 2014 05:11
by tcflam
I can connected MySQL through SSH before. But suddenly, I got the error message "Socket error on binding. WSAGetLastError return 10013($271D)". Why? How can I solve this problem. I'm using UNIDAC 5.2.5
Thanks!
Re: SSH Tunnel
Posted: Thu 13 Mar 2014 05:16
by tcflam
Sorry, I found what is the problem. The problem is that I installed local MySQL in my laptop. When I connect to 127.0.0.1, it will connect the local MySQL directly. Please ignore my previous issue.
But I have the other question. How to ignore saving the ?????.key file? Can it keeping in memory only?
Re: SSH Tunnel
Posted: Thu 13 Mar 2014 13:38
by Dimon
You can ignore saving the SSH server key. For this, you should process the TScSSHClient.OnServerKeyValidate event and set the Accept parameter to True.
But note: it is a very insecure way and it contradicts with the principles of secure connections.
Re: SSH Tunnel
Posted: Fri 14 Mar 2014 02:43
by tcflam
Hi, I will encrpt the connection string in the INI file. If I follow your instruction, it will not create the ???.key file. Right?
Re: SSH Tunnel
Posted: Tue 06 May 2014 08:18
by Dimon
The server key file will not be saved automatically in any case. You can do it only manually in the TScSSHClient.OnServerKeyValidate event handler if you need.