curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1336 Failed to download file from a Windows XP system

From: Dan Fandrich <>
Date: Thu, 27 Feb 2014 21:59:49 +0000

Please don't quote the entire bug when you reply--it makes it hard to see what new information you've added each time.

SSH host check: 2,... means LIBSSH2_KNOWNHOST_CHECK_NOTFOUND so somehow libssh2 can't find the key for the host in your known_hosts file. Can you share the line in ~/.ssh/known_hosts for this host? What version of scp are you using? FWIW, you can use curl's --libcurl option to find the equivalent setopt name for -k or any option; in this case it's done by dropping the CURLOPT_SSH_KNOWNHOSTS option.

** [bugs:#1336] Failed to download file from a Windows XP system**
**Status:** open
**Created:** Wed Feb 19, 2014 09:45 PM UTC by Minh Nguyen
**Last Updated:** Tue Feb 25, 2014 07:45 AM UTC
**Owner:** Daniel Stenberg
Curl version: 7.35.0
I set up the SSHd service (using Cygwin) on my Windows XP system
1. When I used "scp" to download a file from the Windows box, I did not have any problem:
$ scp mnguyen_at_10.10.16.96:/home/mnguyen/test /tmp
mnguyen_at_10.10.16.96's password:
test                                            100%   16     0.0KB/s   00:00
2. However, when I used "curl" to download the same file, I got errors:
$ ./curl -v -u mnguyen scp://
Enter host password for user 'mnguyen':
* Hostname was NOT found in DNS cache
*   Trying
* Connected to ( port 22 (#0)
* SSH MD5 fingerprint: 28c9ed920380957018d758608272e6dd
* SSH host check: 2, key: <none>
* Closing connection 0
curl: (51) SSL peer certificate or SSH remote key was not OK
Should "curl" use the same key defined in .ssh/known_hosts (as "scp" used)?
Note that I don't have any problem using "curl" to download a file from a Linux system.
Sent from because is subscribed to
To unsubscribe from further messages, a project admin can change settings at  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-02-27

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET