Curl version: 7.35.0
I set up the SSHd service (using Cygwin) on my Windows XP system 10.10.16.96.
$ scp email@example.com:/home/mnguyen/test /tmp
test 100% 16 0.0KB/s 00:00
$ ./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
Connected to 10.10.16.96 (10.10.16.96) port 22 (#0)
SSH MD5 fingerprint: 28c9ed920380957018d758608272e6dd
SSH host check: 2, key:
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.