SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Permission denied while ploading a file

Open vivek-meka opened this issue 4 years ago • 4 comments

Version: 2016.1.0.0

Issue: We have a scenario where we download the file from clients SFTP server and put it in s3 and append something to that and overwrite the existing file in SFTP. While uploading the file we are seeing this issue of permission denied.

I tried uploading the file manually through filezilla and it works without issues.

Error Details:

Message: Permission Denied.

Stack Trace:

at Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)\n at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, Flags flags, SftpUploadAsyncResult asyncResult, Action`1 uploadCallback)\n at

I would like know

Why this is happening? Will there be a scenario where the SFTP transfer works with filzilla but not using SSH.NET? How to capture the messages from SSH.NET programatically?

vivek-meka avatar Jun 22 '20 13:06 vivek-meka

I have the exact same issue. have you figured out the problem @PoorDesigner ?

julienperignon avatar Nov 23 '20 09:11 julienperignon

@julienperignon Nope. How about you?

vivek-meka avatar Apr 26 '21 11:04 vivek-meka

Same problem, did you solved?

mmasdivins avatar Feb 23 '23 08:02 mmasdivins

After a recent server change, I've found the same problem when uploading any file

Upgrading the library from version 2020.0.2 to version 2024.0.0 fixed it and now it works perfectly.

Thanks to all mantainers, for keeping the library updated.

marcoregueira avatar May 07 '24 18:05 marcoregueira