cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

scp copy large files. Failure when receiving data from the peer

From: Bradford Kennedy <bkennedy_at_f5.com>
Date: Mon, 15 Feb 2010 17:31:35 -0500

 I am getting the "Failure when receiving data from the peer" error message when I try to download a large file using ssh.

                Curl Version curl-7-19.7
                SSH Version libssh2-1.2.1
                Debian Linux

I have gotten this error from the curl library, but I also see the same error using the curl command line.
The number of bytes transferred before the copy fails varies for both the library and the command line.
Using the scp command to do the copy works. ( I think this means the ssh server is working)
Using the curl command line with the url set to sftp://127.0.0.1//var/scp/testRelease.rel works.

I can provide a small program using the curl library to generate the error if necessary
Thanks
Brad

Failing command line copies

etch-cifsmux$ curl -k -u brad:password scp://127.0.0.1//var/scp/testRelease.rel > brad.rel
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 770M 0 2936k 0 0 1399k 0 0:09:24 0:00:02 0:09:22 1399k
curl: (56) Failure when receiving data from the peer

etch-cifsmux$ curl -k -u brad:password scp://127.0.0.1//var/scp/testRelease.rel > brad.rel
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 770M 0 2904k 0 0 1388k 0 0:09:28 0:00:02 0:09:26 1388k
curl: (56) Failure when receiving data from the peer

Working command line copies using sftp:
etch-cifsmux$ curl -k -u bkennedy:lobotomy sftp://127.0.0.1//var/scp/testRelease.rel > brad.rel
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 770M 100 770M 0 0 9933k 0 0:01:19 0:01:19 --:--:-- 9933k

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-15

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET