cURL / Mailing Lists / curl-users / Single Mail

curl-users

cURLcommand line tool

From: Faizel Isaacs <Faizel.Isaacs_at_vodacom.co.za>
Date: Wed, 2 Dec 2009 18:01:44 +0200

http://www.vodafonelive.co.za

Hi There

I have downloaded the latest version of CURL and libssh2 and I'm still battling to get libssh / curl to upload or download any files to a WInsshd version 5 server. The only weird thing I can see is that the format of the directory listing / file system looks like cygwin to me for this windows 2003 server.

I have installed the latest versions of curl / libssh and have also logged an issue with bitwise for this SFTP server implementation but it looks like no one can help me out. Is there anything I'm missing ???

Please see below examples - any help would be appreciated.

curl --version
curl 7.19.7 (ia64-hp-hpux11.31) libcurl/7.19.7 OpenSSL/0.9.8d zlib/1.2.3 libssh2/1.2.1
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: IPv6 Largefile NTLM SSL libz

Here a directory listing works fine to the WINSSHD version 5 SFTP server
=====================================================

curl sftp://username:password@address
d000000000 1 no-user no-group 0 Dec 2 13:14 .
d000000000 1 no-user no-group 0 Dec 2 13:14 ..
d000000000 1 no-user no-group 0 Nov 27 02:46 in
d000000000 1 no-user no-group 0 Oct 8 08:52 out
-000000000 1 no-user no-group 253 Dec 2 13:14 sgp.awk

Here a upload files to the WINSSHD version 5 SFTP server
=========================================

curl -T s sftp://username:password@address
  % 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
curl: (79) Upload failed: Bad message from SFTP server

Here I'm try to get a file called sgp.awk from the WINSSHD version 5 SFTP server and it fails
====================================================================

curl sftp://vod-za-01:Re^bacsw@address/sgp.awk --verbose
* About to connect() to address port 22 (#0)
* Trying address... connected
* Connected to address (address) port 22 (#0)
* SSH authentication methods available: publickey,gssapi-with-mic,password
* Using ssh public key file /fmstst/fms_app/users/fms_tst/.ssh/id_dsa.pub
* Using ssh private key file /fmstst/fms_app/users/fms_tst/.ssh/id_dsa
* SSH public key authentication failed: Username/PublicKey combination invalid
* Initialized password authentication
* Authentication complete
* Could not open remote file for reading: Bad message from SFTP server
* Connection #0 to host address left intact
curl: (79) Could not open remote file for reading: Bad message from SFTP server
* Closing connection #0

Regards,
Faizel

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled."
Richard Feynman

“This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.co.za/legal/email.jsp "

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

rocketseed_insert1.gif
Received on 2009-12-02