Last post Nov 01, 2017 06:56 AM by Cathy Zou
Oct 31, 2017 03:51 AM|lappel|LINK
Can anyone help me please...
i have a problem, how the solution to overcome the error permission denied with library renci.sshnet and programming language use .NET ?
Nov 01, 2017 06:56 AM|Cathy Zou|LINK
From your description, you get the PermissionDeniedException when you upload file. If so, you need to specify a full path to upload the file.
You could refer to the code as below:
lient.UploadFile(fileStream, "/home/user/" + f.Name, null);
Without the path, the SFTP server probably tries to write the file to a root folder or other foler that you do not have a write access to, so the Permission denied.
For more detail, you could refer to the link as following: