in reply to Re^3: Net SSH2 auth_publickey not working in Windows
in thread Net SSH2 auth_publickey not working in Windows

Firstly, thanks for taking the time to reply.

I've tried a number of variations on a theme for the path including:
as well as the relative path in my previous post. All are giving the same 'Resource temporarily unavailable' error.

A Wireshark capture of the conversation doesn't reveal anything suspicious looking aside from the conversation between the two boxes being a bit short ;).

Nick
  • Comment on Re^4: Net SSH2 auth_publickey not working in Windows

Replies are listed 'Best First'.
Re^5: Net SSH2 auth_publickey not working in Windows
by salva (Canon) on May 13, 2011 at 09:36 UTC
    The default format used by PuTTY for the keys it generates is probably not supported by libssh2/Net::SSH2.

    Though, you should be able to use puttygen to convert them to OpenSSH format.

      Again, thanks for the reply.

      I've checked that one and have uploaded the openSSH format key to the server. Following this I could use puTTY for key-based logon, so I'm assuming that I've done that side of things correctly.

      Nick
        Which, on further inspection turned out to be a bad assumption. I've created a new file for the public key via the 'Conversions' menu in puttygen which gets me a bit further, or at least a different error message. Now I'm seeing:

        Assertion failed: session->userauth_pblc_method_len == _libssh2_ntohu32(pubkeydata), file userauth.c, line 902

        This application has requested the Runtime to terminate it in an unusual way.
        Please contact the application's support team for more information.

        Which is progress of a sort.

        Nick