title: SFTP using cURL
body: <p>I am trying to ftp a file via sftp protocol to a client:</p>
  
  <pre><code>curl -u username --key C:\cygwin\home\XJ0002T\.ssh\id_rsa --pubkey c:\cygwin\home\XJ0002T\.ssh\id_rsa.pub -
  T c:\temp2\test4.txt sftp://server/SFTP/ --insecure
  </code></pre>
  
  <p>Enter host password for user <code>XJ0002T</code>:</p>
  
  <p>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?</p>