TCRSSHIOHandler + TMyConnection = "Open Failed"
Posted: Fri 18 Dec 2020 10:27
Hi,
Note, I have recently inherited this project a couple of days ago and I'm completely new to this project and MyDAC/SecureBridge
I've got my TScSSHClient working & I've followed the steps in https://www.devart.com/mydac/docs/ssh.htm, but when I try to set Connection1.Connected := TRUE I get Open Failed (EScError).
I've traced this to TCRSSHIOHandler.Connect(...) line 147 (Channel.Connect). So the CRSSHIOHandler is creating it's own TScSSHChannel instance.
The strange thing is that there's already a TScSSHChannel component on the datamodule which is set up (by previous programmer) and connects ok in the code. TBH I don't really know why that channel component is there if CRSSHIOHandler is creating it's own instance internally.
The server is web server, I can use PUTTY (default settings) to connect to MySQL on localhost:3306.
This post exactly describes my problem: viewtopic.php?t=35202 but unfortunately remains unsolved.
Can anyone point me in the right direction here?
Thanks
Note, I have recently inherited this project a couple of days ago and I'm completely new to this project and MyDAC/SecureBridge
I've got my TScSSHClient working & I've followed the steps in https://www.devart.com/mydac/docs/ssh.htm, but when I try to set Connection1.Connected := TRUE I get Open Failed (EScError).
I've traced this to TCRSSHIOHandler.Connect(...) line 147 (Channel.Connect). So the CRSSHIOHandler is creating it's own TScSSHChannel instance.
The strange thing is that there's already a TScSSHChannel component on the datamodule which is set up (by previous programmer) and connects ok in the code. TBH I don't really know why that channel component is there if CRSSHIOHandler is creating it's own instance internally.
The server is web server, I can use PUTTY (default settings) to connect to MySQL on localhost:3306.
This post exactly describes my problem: viewtopic.php?t=35202 but unfortunately remains unsolved.
Can anyone point me in the right direction here?
Thanks