cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl scp upload failing

From: Hans-Jürgen May <menner_at_arcor.de>
Date: Mon, 16 Jun 2008 19:31:52 +0200

curl scp upload failing (curl 7.18.2)

When uploading a file via scp:// to an SSH server , the file is created
with size 0, then curl fails.
Message is:
* Failed to get channel EOF: -1
* Channel failed to close: -1
I tried two different SSH servers and curl client both on Solaris and
Linux. And even curl with socks4 and scp.
Using the scp command directly doesn't show an error.

The wohle curl session is
curl -vvv --key /home/user/.ssh/id_rsa --pubkey
/home/user/.ssh/id_rsa.pub --user user: \
 -T KV7030_testfile0 scp://localhost/home/user/KV7030_testfile0.scp
* About to connect() to localhost port 22 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 22 (#0)
* SSH authentication methods available: publickey
* Using ssh public key file /home/user/.ssh/id_rsa.pub
* Using ssh private key file /home/user/.ssh/id_rsa
* Initialized SSH public key authentication
* Authentication complete
* SSH CONNECT phase done
} [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 10240 0 0 0 10240 0 4615 --:--:-- 0:00:02 --:--:--
4615
* Failed to get channel EOF: -1
* Channel failed to close: -1
100 10240 0 0 0 10240 0 4543 --:--:-- 0:00:02 --:--:--
4543
* Connection #0 to host localhost left intact
* Closing connection #0

--trace-ascii additionally shows one or more "Send data" blocks

libssh2 (0.18) doesn't seem to be the problem since example/simple/scp_write
is uploading the same file without problems.
Received on 2008-06-16