curl-library
RE: Reflection for Secure IT Server
Date: Mon, 3 May 2010 18:00:12 +0800
> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dirk Manske
> Sent: Monday, May 03, 2010 5:47 PM
> To: libcurl development
> Subject: Re: Reflection for Secure IT Server
>
> Have you tried the -k (--insecure) option?
> Also you don't need to add the file name to the URL (unless
> you what to save it with a different name), so try:
>
> curl -v -u <user>:<pass> -k -T testSmall.pdf
> sftp://13.121.8.133/Home/Scans/
Yeah, this helps a bit, Dirk!
=============================================================
qxu@durian(pts/1):~/opensrc/curl-7.20.1/src[229]$ ./curl -v -k -u <user>:<pass> -T testSmall.pdf sftp://13.121.8.133/Home/Scans/
* About to connect() to 13.121.8.133 port 22 (#0)
* Trying 13.121.8.133... % Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to 13.121.8.133 (13.121.8.133) port 22 (#0)
* SSH authentication methods available: password
* Initialized password authentication
* Authentication complete
} [data not shown]
-10244 511k 0 0 0 -5361 0 -1398 --:--:-- 0:00:38 --:--:--
-10562 511k 0 0 0 -5527 0 -1405 --:--:-- 0:00:39 --:--:--
-10881 511k 0 0 0 -5694 0 -1411 --:--:-- 0:00:40 --:--:--
-11199 511k 0 0 0 -5860 0 -1417 --:--:-- 0:00:41 --:--:--
-11518 511k 0 0 0 -6027 0 -1423 --:--:-- 0:00:42 --:--:--
-11836 511k 0 0 0 -6193 0 -1429 --:--:-- 0:00:43 --:--:--
-12154 511k 0 0 0 -6360 0 -1434 --:--:-- 0:00:44 --:--:--
-12471 511k 0 0 0 -6526 0 -1439 --:--:-- 0:00:45 --:--:--
-12789 511k 0 0 0 -6692 0 -1444 --:--:-- 0:00:46 --:--:--
-13106 511k 0 0 0 -6858 0 -1449 --:--:-- 0:00:47 --:--:--
-13423 511k 0 0 0 -7024 0 -1453 --:--:-- 0:00:48 --:--:--
-13741 511k 0 0 0 -7191 0 -1457 --:--:-- 0:00:49 --:--:--
-14059 511k 0 0 0 -7357 0 -1461 --:--:-- 0:00:50 --:--:--
-14377 511k 0 0 0 -7523 0 -1465 --:--:-- 0:00:51 --:--:--
...... /* still printing similar lines as the above */
=============================================================
This time, the password authentication has passed. But the remote file transferred is still 16KB. The curl transfer lines outputted in the above seems very strange. How come the numbers are all negative?
Besides the flag -v, any more means to debug?
Thanks a lot,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-03