Dear Sir,
I am trying to use SecureBridge in order to upload a file w/ SFTP
Each attempt returns: 'SFTP server error occured: Invalid file ID'
And I cannot find any help on the error code anywhere.
Of course, strFilename conatains a valid file path.
I have no problem doing the upload using i.e. filezilla and the same credentials I use programmatically.
Do you know what could be wrong?
Code is very simple:
ScSSHClient1.HostName := strHostName;
ScSSHClient1.User := strUsername;
ScSSHClient1.Password := strPassword;
ScSSHClient1.KeyStorage := ScFileStorage1;
ScSSHClient1.Connect;
ScSFTPClient1.Initialize;
ScSFTPClient1.UploadFile(strFilename, ExtractFileName(strFilename), False);
procedure TfrmMain.ScSSHClient1ServerKeyValidate(Sender: TObject; NewServerKey: TScKey; var Accept: Boolean);
var
Key: TScKey;
fp, msg: string;
begin
Key := ScSSHClient1.KeyStorage.Keys.FindKey(ScSSHClient1.HostName);
if (Key = nil) or not Key.Ready then begin
NewServerKey.GetFingerPrint(haMD5, fp);
Key := TScKey.Create(nil);
Key.Assign(NewServerKey);
Key.KeyName := ScSSHClient1.HostName;
ScSSHClient1.KeyStorage.Keys.Add(Key);
Key.Free;
Accept := True;
end;
end;
Thanks, thanks, and once again... Thanks...
SFTP server error occured: Invalid file ID
Re: SFTP server error occured: Invalid file ID
I can not reproduce the problem.
Please try to use the SFTPClient demo of SecureBridge and check if the problem persists.
Can I have access to your SFTP server?
Please try to use the SFTPClient demo of SecureBridge and check if the problem persists.
Can I have access to your SFTP server?
Re: SFTP server error occured: Invalid file ID
Dear,
I have tried using the demo to connect and upload, but it failed (But still works w/ i.e. FileZilla).
Connecting w/ SSH is OK.
Starting SFTP is OK.
But as soon I try to upload a file it returns a software error!
Can I provide you with my credentials on this SFTP server so you can have a try using a different mean (for obvious security reasons)? I.e email? To what address?
Thanks
I have tried using the demo to connect and upload, but it failed (But still works w/ i.e. FileZilla).
Connecting w/ SSH is OK.
Starting SFTP is OK.
But as soon I try to upload a file it returns a software error!
Can I provide you with my credentials on this SFTP server so you can have a try using a different mean (for obvious security reasons)? I.e email? To what address?
Thanks
Re: SFTP server error occured: Invalid file ID
Please contact me by dmitryg*devart*com email.
Re: SFTP server error occured: Invalid file ID
Hey Dmitry,
I've sent you the connection parameters about a few days ago. Did you manage to have an attempt and see why it does not work?
Thanks
I've sent you the connection parameters about a few days ago. Did you manage to have an attempt and see why it does not work?
Thanks
Re: SFTP server error occured: Invalid file ID
I still can not reproduce the problem.
I have tested your SFTP server and it's OK. I uploaded and downloaded files on the server without any error.
Please try to download the latest SecureBridge build (6.3.5) and check if the problem still exists.
I have tested your SFTP server and it's OK. I uploaded and downloaded files on the server without any error.
Please try to download the latest SecureBridge build (6.3.5) and check if the problem still exists.