Skip to content
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

file transfer with SFTP with curl is not working #13561

Open
sankarcapge opened this issue May 8, 2024 · 4 comments
Open

file transfer with SFTP with curl is not working #13561

sankarcapge opened this issue May 8, 2024 · 4 comments

Comments

@sankarcapge
Copy link

I did this

when we transfer file using SFTP we are getting error permission denied in remote resources(9). we have used SETOPT for FILE and DIR access for SFTP. but its not success.

I expected the following

file transfer should be happen when we transfer the file using SFTP

curl/libcurl version

CURL 8.7.1

operating system

RHEL 9

@bagder
Copy link
Member

bagder commented May 8, 2024

Thanks a lot for your report!

I've failed to reproduce this problem myself, so can I ask you to provide us with more details on how to go ahead and repeat this. Preferably with a command line or a stand-alone program we can run from our ends against a public URL to trigger the problem?

Also: please tell us the full curl -V output, as the SSH library and version you use is is probably relevant here.

@sankarcapge
Copy link
Author

when we transfer file using SFTP cmd: "sftp://10.68.196.198:22/OMSFTPVerify.testfile -> /tmp/OMSFTPVerify.testfile", its showing error in curl : "Access denied to remote resource(9)".

This the curl -v output
[root@CLA-0(OMS-857) /root]

curl -V

curl 8.7.1 (x86_64-pc-linux-gnu) libcurl/8.7.1 OpenSSL/3.0.7 zlib/1.2.11 brotli/1.0.9 zstd/1.5.1 libidn2/2.3.0 libssh2/1.11.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https ipfs ipns mqtt rtsp scp sftp smb smbs telnet tftp
Features: alt-svc AsynchDNS brotli HSTS HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets zstd

let us know if you required any information and aslo how could it be fixed.

Thanks,

@bagder
Copy link
Member

bagder commented May 9, 2024

"Access denied to remote resource(9)".

So there's a SSH authentication problem. What method are you using?

@sankarcapge
Copy link
Author

we are using password authentication method for SSH authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants