in reply to Usage of key authentication with Net::SSH::Any

Putty-keys are not immediately compatible with the "other" ssh keys. Have you verified that the connection using the keys works with a plain ssh executable?

Alternatively, Google tells me a link that describes how to convert SSH keypairs generated using PuttyGen to ssh-agent keypairs. Maybe simply using the ssh-style key files Just Works.

Replies are listed 'Best First'.
Re^2: Usage of key authentication with Net::SSH::Any
by Anonymous Monk on Dec 11, 2013 at 13:44 UTC
    Hi,
    Thanks for your reply. I just used a portable edition of bitvise to generate a new key pair and exported them under OpenSSH format.

    Once generated, I put the public key in WinSSHD on the remote server. I tried with bitvise (private key put in its key manager), it worked. I tried with my script and it failed. (private and public key were in the correct folder. Keys are named exactly the same. Public on is just suffixed by ".pub")

    I'm on a windows env. so, unfortunately, I can't use ssh-keygen.

    Any other idea?
      (I'm the author of the previous message. Didn't see I wasn't logged yet)
        Salva, that's what I used at "second" try. First used putty key format then converted them into OpenSSH format (see initial post)

        I can't respond to your answer, idk why