cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

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

From: Minh Nguyen <mnguyen_at_users.sf.net>
Date: Thu, 20 Feb 2014 19:13:13 +0000

Hi,

To clarify my description of the problem, I tried to use "curl" to download a file from Windows to Linux.
Since it did not work, I tried the Linux utility "scp" to download the file from Windows to Linux to verify that the Windows host is available for file transfer via scp, and it worked.
Looking at the error message from "curl", it was related to the SSH/SSL key. That was unexpected since "scp" did not have any problem using the key for the Windows host in known_hosts file on the Linux system. Should "curl" use the same key generated for the Windows host in the known_hosts file?
>From the "curl" verbose output, I did not see any indication that "curl" did not find the known_hosts file.

Thanks,
M. Nguyen

From: Daniel Stenberg [mailto:bagder_at_users.sf.net]
Sent: Thursday, February 20, 2014 1:36 AM
To: [curl:bugs]
Subject: [curl:bugs] #1336 Failed to download file from a Windows XP system

Are you saying that the same known_hosts file works on Linux but not on Windows? Did curl find the known_hosts file in the windows case?

________________________________

[bugs:#1336]<http://sourceforge.net/p/curl/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: Wed Feb 19, 2014 09:45 PM UTC
Owner: Daniel Stenberg

Curl version: 7.35.0

I set up the SSHd service (using Cygwin) on my Windows XP system 10.10.16.96.

  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<mailto:mnguyen_at_10.10.16.96:/home/mnguyen/test> /tmp
mnguyen_at_10.10.16.96's<mailto:mnguyen_at_10.10.16.96's> password:
test 100% 16 0.0KB/s 00:00

  1. However, when I used "curl" to download the same file, I got errors:

$ ./curl -v -u mnguyen scp://10.10.16.96/home/mnguyen/test
Enter host password for user 'mnguyen':
Hostname was NOT found in DNS cache
Trying 10.10.16.96...
Connected to 10.10.16.96 (10.10.16.96) port 22 (#0)
SSH MD5 fingerprint: 28c9ed920380957018d758608272e6dd
SSH host check: 2, key:
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 sourceforge.net because you indicated interest in https://sourceforge.net/p/curl/bugs/1336/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

---
** [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:** Thu Feb 20, 2014 09:35 AM UTC
**Owner:** Daniel Stenberg
Curl version: 7.35.0
I set up the SSHd service (using Cygwin) on my Windows XP system 10.10.16.96.
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://10.10.16.96/home/mnguyen/test
Enter host password for user 'mnguyen':
* Hostname was NOT found in DNS cache
*   Trying 10.10.16.96...
* Connected to 10.10.16.96 (10.10.16.96) 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 sourceforge.net because curl-tracker@cool.haxx.se is subscribed to http://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at http://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-02-20

These mail archives are generated by hypermail.

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

File upload with ASP.NET