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

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?
  • Comment on Re^2: Usage of key authentication with Net::SSH::Any

Replies are listed 'Best First'.
Re^3: Usage of key authentication with Net::SSH::Any
by grom (Initiate) on Dec 11, 2013 at 13:46 UTC
    (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
        What I mean is that instead of bitvise, you use PuTTY key generator to convert the key from putty format to openssh one.

        IIRC, bitvise also uses its own key format that may be supported by OpenSSH but not by libssh2.