I tested my connection and settings to my SFTP server using fileZilla. When I attempt to the SFTP server using Secure Bridge in Delphi 7 I get an error. Here are the components property settings (not real password).
object ScSFTPClient1: TScSFTPClient
SSHClient = ScSSHClient1
Left = 24
Top = 24
end
object ScSSHClient1: TScSSHClient
Connected = True
HostName = 'clusterftp.aimitservices.com'
Port = 10022
User = 'steve_test'
Password = 'zzz'
KeyStorage = ScFileStorage1
PrivateKeyName = 'clusterftp.aimitservices.com'
Left = 72
Top = 24
end
object ScFileStorage1: TScFileStorage
Left = 120
Top = 24
Path = 'D:\borland\delphi\Projects\bite\tray'
end
here is what i am running:
ScSFTPClient1.UploadFile('D:\borland\delphi\Projects\bite\tray\upload\20111013\Advisor.csv','',true);
my error: Cannot send data to server
I test the connection on the form by setting the Connected property to true. This seem to work but when i run the app and set the property to true i notice that connected is -1.
I must be missing a property setting.
Thanks!