> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Dirk Manske
> Sent: Monday, May 03, 2010 5:47 PM
> To: libcurl development
> Subject: Re: Reflection for Secure IT Server
> 
> > x...@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:
=================================================
q...@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
q...@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

Reply via email to