SFTP Connection fails with "permission denied" but I can connect using the sftp cli
See original GitHub issueI am trying to connect to a client’s SFTP server using a username and password that they provided. When connecting using SSH.NET I get the error Renci.SshNet.Common.SftpPermissionDeniedException: permission denied thrown, but I can connect using the same username and password using the sftp cli binary and other sftp tools.
Any idea what to change on my end, or how to debug what is different between the two methods of access?
Thanks
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Troubleshoot SFTP Permission Denied: A Detailed Guide ...
To solve the SFTP permission denied error, you'll need to verify that the user account you are using to SFTP has the proper...
Read more >'Permission Denied' Error when getting a file via SFTP
"Permission denied" is a standard message meaning that your remote user ID doesn't have permission to access the file in question.
Read more >Why does SFTP return "permission denied" even when ...
I want to implement an FTP over two Linux(Ubuntu 20.04) munchies in order to ... SFTP would utilize password authentication (and not SSH) ......
Read more >SFTP error #3 permission denied- Quick Resolution!!
The SFTP error #3 permission denied occurs due to incorrect permissions. We resolve it by correcting permissions and disabling transfer to ...
Read more >SFTP Access denied problem - Microsoft Q&A
I have installed SSH Services Then I tried to connect to the SFTP, i got this error : Status: Using username "sftp". Status:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I also have same error ( key already changed to OpenSSH )
I cloned the repo locally, built in debug mode, and dumped out the logs. Here’s what I see:
It appears to successfully create the session and exchange data. I can’t figure out why these requests are denied and requests with the same username and password from the same server using the
sftpbuiltin are permitted.