cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: unable to read remote file via curl-proxy-sftp (command line) - Permission denied

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Apr 2013 13:42:24 +0200 (CEST)

On Wed, 3 Apr 2013, Stephen Chai wrote:

> curl -v -x [proxyServer]:[proxyPort] -U [proxyUser]:[proxyPassword]
> --proxytunnel --insecure -u [sftpUserA]:[sftpPassword]
> sftp://[sftpserver]/[targetFile]
>
> The issue is that I received permission denied error in return:
>      curl: (9) Could not open remote file for reading: Permission denied
>
> The permission of the remote file is:
> -rw-rw----    1 sftpUserB groupA    24368 Mar 14 15:26 targetFile

My guess is that you're using a wrong URL so that it doesn't point to the
specific file you want. The "targetFile" you mention in your command line.

But without more details it is hard to tell for sure.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-08