I am trying to transfer the ftp file through the sftp protocol to the client:
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
Enter the password for user XJ0002T :
Curl keeps asking me for a password. I tried key pairs using OpenSSH and puttyGen, and did not work. Can someone tell me what I am doing wrong?
source share