cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1336 SCP login failure on Windows XP

From: Minh Nguyen <mnguyen_at_users.sf.net>
Date: Tue, 11 Mar 2014 04:39:24 +0000

Thank you very much for your help. So after upgrading to the latest libssh2 library, I am able to retrieve file from a Windows host using curl. Previously, I forgot to use "-u" option to supply user id and password (just like using "scp"), so I got problem.

Please close this bug accordingly. Thanks!

---
** [bugs:#1336] SCP login failure on Windows XP**
**Status:** open
**Created:** Wed Feb 19, 2014 09:45 PM UTC by Minh Nguyen
**Last Updated:** Mon Mar 10, 2014 12:05 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 https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-03-11

These mail archives are generated by hypermail.

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

File upload with ASP.NET