curl-library
sftp with password+public Key
Date: Sat, 4 Sep 2010 00:28:30 +0530
Hi,
I am working on a sftp (password+publickey) support using libcurl (latest version).
I generated the keypair using PuttyGen, then used them in windows and connected to sftp server using
winscp. Everything seems to work fine. Then I had troubles with libcurl example code from linux. So, I used ssh-keygen to convert public key to openssh format and used puttygen in linux to convert the private key also to openssh format.
Still the operation from linux fails with "Wrong Public Key or username/password combination". Where am I going wrong.
I am using the latest libssh2 and latest release of curl. Any suggestion would be greatly appreciated.
Regards,
Venkatrangan G
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-03