When I try to Open a Read stream using the Sftp.GetStream function I get an exception indicating PermissionDenied exception.
I've been able to download the file using the Download function an I've been able to open a Stream to the file using a different SFTP library. So the permissions are correct, cause I've been able to read and delete the file.
This only happens in a particular server, the same line works fine with other servers. I don't have information of this particular server, but I know it runs under a Linux machine, while the working servers are Bitvise servers under Windows.
Both IsConnected and IsAuthenticated returned true before calling the function.
This is the exception information:
Sftp ProblemType: 0.
Message: Permission denied.
ToString: Rebex.Net.SftpException: Permission denied; Permission denied. at utgp.mjcj(yffv arx, Type ary) at utgp.mjbk(String aom, uthq aon, Boolean aoo, utfz aop) at Rebex.Net.Sftp.pntx(String ur, uthq us, utfz ut)