SFTP server error occured: Invalid file ID

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Flub
Posts: 9
Joined: Thu 01 Jun 2006 14:38

SFTP server error occured: Invalid file ID

Post by Flub » Thu 10 Jul 2014 13:32

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...

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: SFTP server error occured: Invalid file ID

Post by Dimon » Wed 16 Jul 2014 15:16

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?

Flub
Posts: 9
Joined: Thu 01 Jun 2006 14:38

Re: SFTP server error occured: Invalid file ID

Post by Flub » Thu 24 Jul 2014 07:50

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: SFTP server error occured: Invalid file ID

Post by Dimon » Thu 24 Jul 2014 13:17

Please contact me by dmitryg*devart*com email.

Flub
Posts: 9
Joined: Thu 01 Jun 2006 14:38

Re: SFTP server error occured: Invalid file ID

Post by Flub » Tue 29 Jul 2014 09:04

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: SFTP server error occured: Invalid file ID

Post by Dimon » Thu 31 Jul 2014 08:47

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.

Post Reply