can't open file/no such file

May 16, 2012 at 8:43 AM

We are using the ssh.net to upload files to client's remote sftp servers.

the basic command after connecting is ChangeDirectory and then UploadFile (from MemoryStream).

for some reason, we get error of 'can't open file' or 'no such file'.

however, this is not constant, sometimes it works, sometimes doesn't, yet the error is quite frequent.

We tried to determine if the problem is with the data (characters, spaces, encoding etc.), but trying to upload the same file that failed on production, worked fine locally on test project.

Coordinator
Jun 5, 2012 at 7:51 PM

Hmm,

It looks like it environment specific.

 

All I can say is that those errors are return to me by SFTP subsystem and I am only sending them back to the client.

Sorry couldnt be more help here.

 

Thanks,

Oleg