cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl -T

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 May 2012 19:48:09 +0200 (CEST)

On Mon, 30 Apr 2012, kalin m wrote:

> recently i came across a situation where i get this:
>
> # curl -vvvv -T some_file user:pass sftp://ftp.server.com/dir/

One -v is enough, multiple ones makes no difference...

But you didn't say which curl version and which libssh2 version it is using.

> curl: (79) Could not open remote file for writing: Operation failed

That's likely a problem with libssh2 or at least it is related to the SSH
protocol layer.

Can you retrieve files with curl from that same SFTP server so that the
problem is only related to upload?

-- 
  / 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 2012-05-01