SSH.NET
SSH.NET copied to clipboard
Permission denied while ploading a file
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?
I have the exact same issue. have you figured out the problem @PoorDesigner ?
@julienperignon Nope. How about you?
Same problem, did you solved?
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.