curl-users
SFTP "File already completely downloaded" Problem
Date: Thu, 22 Jan 2009 13:23:29 -0500
I am trying to download a file via sftp but am getting the message "file
already completely downloaded." The file has not been downloaded at
all. I am able to download the file using FileZilla under Windows, and
via sftp in UNIX on the same box as curl.
OS: sunOS 5.8 Generic Patch October 2001
$ curl --version
curl 7.18.2 (sparc-sun-solaris2.8) libcurl/7.18.2 OpenSSL/0.9.8h
zlib/1.2.3 libidn/1.8 libssh2/0.18
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IDN IPv6 Largefile NTLM SSL libz
The file I am trying to download is called
BMOCOM-SEND%ADW23735-BAIRPTING-BAIFILE-A%SFTP%POLLABLE%39fedh003ruvutcg0
01ld3rv. I am encoding the percent signs in the filename as %25 in the
url. If I don't do that, I get File Not Found.
Here is the command:
curl -v -u username:xxxxx
sftp://sftp.tradinggrid.gxs.com/BMOCOM-SEND%25ADW23735-BAIRPTING-BAIFILE
-A%25SFTP%25POLLABLE%2539fedh003ruvutcg001ld3rv -o file.txt
Here's what I get:
* About to connect() to sftp.tradinggrid.gxs.com port 22 (#0)
* Trying 204.90.130.72... connected
* Connected to sftp.tradinggrid.gxs.com (204.90.130.72) port 22 (#0)
* SSH authentication methods available: publickey,password
* Using ssh public key file /home/user/gjohnson/.ssh/id_dsa.pub
* Using ssh private key file /home/user/gjohnson/.ssh/id_dsa
* SSH public key authentication failed: Username/PublicKey combination
invalid
* Initialized password authentication
* Authentication complete
* File already completely downloaded
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
0* Connection #0 to host sftp.tradinggrid.gxs.com left intact
* Closing connection #0
Any help would be greatly appreciated.
Greg Johnson
-------------------------------------------------------------------
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 2009-01-22