cURL / Mailing Lists / curl-users / Single Mail


sftp Command Line help

From: Michael Lam <>
Date: Fri, 15 Apr 2011 17:28:09 -0400

I am trying to ftp a file via sftp protocol to a client:

curl -u username --key C:\cygwin\home\XJ0002T\.ssh\id_rsa --pubkey c:\cygwin\home\XJ0002T\.ssh\ -
T c:\temp2\test4.txt sftp://server/SFTP/ --insecure

Enter host password for user 'XJ0002T':

Curl keeps asking me for a password. I have tried key pairs using OpenSSH and puttyGen, neither worked. Can someone tell me what I am doing wrong?


Mike Lam

List admin:
Received on 2011-04-15