-
-
Notifications
You must be signed in to change notification settings - Fork 952
SFTP Connection fails with "permission denied" but I can connect using the sftp cli #1025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If connecting to a linux host you can modify its confirmation you can enable debugging to get more info https://support.cpanel.net/hc/en-us/articles/4402832130967-How-to-enable-debug-logging-for-SSHD-SSH-by-editing-the-etc-ssh-sshd-config
|
I don't have access to the target server to enable debugging. Are the requests made by SSH.NET affected by configuration in ~/.ssh/config or /etc/ssh/sshd_config? |
SSH.Net does not use any part of the OpenSSH subsystem or package installed on the host. It is own implementation of the SSH RFC
|
That makes sense. Is there a way to run SSH.NET in |
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 |
Version 2023.0.0 has been published https://www.nuget.org/packages/SSH.NET/2023.0.0 |
I 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
The text was updated successfully, but these errors were encountered: