Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my windows xp machine, I can connect to a remote host via putty and psftp. However I fail to establish a connection with curl. When I enter

curl -v --key priv_key.ppk --pubkey s

I get

* SSH authentication methods available: publickey,password
* Using ssh public key file
* Using ssh private key file priv_key.ppk
* SSH public key authentication failed: Unable to open public key file

I did use the export feature of puttygen to generate a curl comliant private key file, but I do not know how to provide a working public key file. Any hints?

share|improve this question
Open your private key with putty key gen. The public key is displayed in the dialog box. You can select the displayed key, and copy/paste it into a text file. – Zoredache Jul 25 '13 at 22:42
Thanks, I did copy this into the authorized_keys file on the server and also into a local copy of the pubkey file that is passed to curl as an argument. I still get the same error message... – Karsten W. Jul 25 '13 at 22:58

You must log in to answer this question.

Browse other questions tagged .