cURL / Mailing Lists / curl-library / Single Mail

curl-library

scp transfers not working

From: Eric <crc1021_at_myrealbox.com>
Date: Thu, 08 May 2008 12:17:37 -0500

The scp transfer starts to work, but fails near the end of the second block (the file is 50 meg). Most of the data of the first two blocks are written to disk at the server. I tried curl and it operated the same as my code.
The sftp transfer does work for me, but it is slow and cpu intensive.

Here is output of the trace from curl

curl -v --trace y.txt --key /home/eric/.ssh/id_rsa --pubkey /home/eric/.ssh/id_rsa.pub -T abc.txt scp://eric@10.1.10.2/home/eric/abc.txt

== Info: About to connect() to 10.1.10.2 port 22 (#0)
== Info: Trying 10.1.10.2... == Info: connected
== Info: Connected to 10.1.10.2 (10.1.10.2) port 22 (#0)
== Info: SSH authentication methods available: publickey,password
== Info: Using ssh public key file c:/home/eric/.ssh/id_rsa.pub
== Info: Using ssh private key file c:/home/eric/.ssh/id_rsa
== Info: Initialized SSH public key authentication
== Info: Authentication complete
== Info: SSH CONNECT phase done
=> Send data, 16384 bytes (0x4000)
0000: 1b 25 2d 31 32 33 34 35 58 40 50 4a 4c 20 4a 4f .%-12345X_at_PJL JO
0010: 42 20 4e 41 4d 45 20 3d 20 22 74 65 73 74 22 0a B NAME = "test".
3ff0: 00 81 00 81 00 81 00 81 00 81 00 fe 00 04 7f 80 ...............
=> Send data, 16384 bytes (0x4000)
0000: 00 00 0f fe ff 03 80 01 ff e0 fe 00 01 1f fe fd ................
...
7fe0: 00 00 00 00 00 00 00 00 00 .........
== Info: Closing connection #0
== Info: Failed sending data to the peer

curl --version
curl 7.18.1 (i686-pc-mingw32) libcurl/7.18.1 OpenSSL/0.9.8g zlib/1.2.3 libssh2/0.19.0-20080507
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: Largefile NTLM SSL libz
Received on 2008-05-08