cURL / Mailing Lists / curl-users / Single Mail

curl-users

Corruption with uploads using sftp

From: Jade Rubick <jade_at_volunteersolutions.org>
Date: Thu, 28 Aug 2008 09:38:55 -0700

I recently upgrade curl to 7.18.2 (compiled on FC4 linux
2.6.17-1.2142_FC4smp) in order to take advantage of the ability to
connect via Sftp. I compiled it against libssh2-0.18.

I have been able to download files correctly, and do directory
listings, but when I upload files, files that are more than tiny are
corrupted and I get an error instead of successful completion.

Any suggestions?

$ /usr/local/bin/curl -v- --user username:password --upload-file /web/
vs/files/shared/public/solr-vs--lucene--server--solr--vs-ae-vsg-
part-1-14533565-bid10253233741-10253233695-10099.xml -v sftp://my.host.com/
* About to connect() to my.host.com port 22 (#0)
* Trying 1.2.3.4... connected
* Connected to my.host.com (1.2.3.4) port 22 (#0)
* SSH authentication methods available: publickey,password
* Using ssh public key file /home/jade/.ssh/id_dsa.pub
* Using ssh private key file /home/jade/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
} [data not shown]
   % Total % Received % Xferd Average Speed Time Time
Time Current
                                  Dload Upload Total Spent
Left Speed
   0 3975k 0 0 0 0 0 0 --:--:-- 0:00:04
--:--:-- 0* Closing connection #0
* Failed sending data to the peer

curl: (55) Failed sending data to the peer

Any suggestions?

Jade

Jade Rubick
Director of Development
Truist
120 Wall Street, 4th Floor
New York, NY 10005 USA
jade_at_volunteersolutions.org
+1 503 285 4963
+1 707 671 1333 fax

www.truist.com

The information contained in this email/document is confidential and
may be legally privileged. Access to this email/document by anyone
other than the intended recipient(s) is unauthorized. If you are not
an intended recipient, any disclosure, copying, distribution, or any
action taken or omitted to be taken in reliance to it, is prohibited.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-28