cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Reflection for Secure IT Server

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Mon, 3 May 2010 18:20:16 +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
>
> > xu_at_durian(pts/1):~/opensrc/curl-7.20.1/src[227]$ ./curl -v -u
> > <user>:<pass> -T testSmall.pdf
> > sftp://13.121.8.133/Home/Scans/testSmall.pdf
> ...
> > * SSL peer certificate or SSH remote key was not OK
> >
> > curl: (51) SSL peer certificate or SSH remote key was not OK
> 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/

In contrast, when I using the same command-line tool to talk to an OpenSSH server, it functions well:
=================================================
qxu@durian(pts/1):~/opensrc/curl-7.20.1/src[235]$ ./curl -v -k -u <user>:<pass> -T testSmall.pdf sftp://13.198.98.190/home/qxu/scan/
* About to connect() to 13.198.98.190 port 22 (#0)
* Trying 13.198.98.190... % 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.198.98.190 (13.198.98.190) port 22 (#0)
* SSH authentication methods available: publickey,gssapi-with-mic,password
* Using ssh public key file /home/qxu/.ssh/id_dsa.pub
* Using ssh private key file /home/qxu/.ssh/id_dsa
* SSH public key authentication failed: Unable to open public key file
* Initialized password authentication
* Authentication complete
} [data not shown]
100 511k 0 0 100 511k 0 932k --:--:-- --:--:-- --:--:-- 932k*
Connection #0 to host 13.198.98.190 left intact

* Closing connection #0
qxu_at_durian(pts/1):~/opensrc/curl-7.20.1/src[236]$
=================================================
The whole transfer process is perfect. And the file size in the destination is exactly the same as the local one's.

Guess it may be curl can't handle some peculiar response from Reflection Secure IT Server. Just want to know that if any other flag we can use to show more debug information in the transfer process, besides -v (verbose).

Thanks,
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