Connecting to SSH FTP using Indy 10
Posted: Wed 25 Apr 2012 21:35
We have used Indy 10 in Delphi XE to connect to FTP servers to upload and download files. One of our clients has an FTP server with SSH2 encryption, so we are trying to use SecureBridge to handle this. I can get the SSHClient demo to connect to the server, but when I try to use the product within our code, attaching it to the Indy component, I get a "Connection Failed" error. I am connecting a TScIdIOHandler to the TIdFTP object. I have an TScSSHClient connected to the IOHandler, and a TScFileStorage connected to the SSHClient. I had to set the OnServerKeyValidate event to get past an authentication issue, but then I started getting this error.
I'm new to using SecureBridge and connecting to SSH in general, so I might be missing something obvious, but I can't tell what it might be from the help files and the demos. Is there a demo or code sample on how to properly connect to an Indy component that allows us to upload and download using that component?
I'm new to using SecureBridge and connecting to SSH in general, so I might be missing something obvious, but I can't tell what it might be from the help files and the demos. Is there a demo or code sample on how to properly connect to an Indy component that allows us to upload and download using that component?