I have now changed the key-files.

Public-Key:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCV5LKBeYj97VRCpS0JDzErTSIMV1xjaV +laNotc1kphN7QEWMT1WDWKtYlSIBFxQoAfavKfXHsVR/ugvjuYrbjee6IxiU3r43TT+en +udXpklfLwzv8fibLy0c1pLepyPzxBGSNN2FL+Z+BnGjBprxr+b0x/Q5xLulB8KEZPWGhY +Pu1seV5ShVQDEvAoHiTj4sixv07u4OCyveSSrIv+gdAEZAObb589eC5IsBGc/LSJnL9DC +FeqNbUsZ9eGNUw+pD+KtEaUwsyWPr39sb1wnZOB1IstnLWGX5Baa/TgqsyJv+zt6PfCai +zj7gKZklJdoUXaeQkeEnGj/Th0W3hzMSrp rsa-key-for-test-purposes

Private-Key:

-----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAleSygXmI/e1UQqUtCQ8xK00iDFdcY2lZWjaLXNZKYTe0BFjE 9Vg1irWJUiARcUKAH2ryn1x7FUf7oL47mK243nuiMYlN6+N00/np7nV6ZJXy8M7/ H4my8tHNaS3qcj88QRkjTdhS/mfgZxowaa8a/m9Mf0OcS7pQfChGT1hoWD7tbHle UoVUAxLwKB4k4+LIsb9O7uDgsr3kkqyL/oHQBGQDm2+fPXguSLARnPy0iZy/QwhX qjW1LGfXhjVMPqQ/irRGlMLMlj69/bG9cJ2TgdSLLZy1hl+QWmv04KrMib/s7ej3 wmos4+4CmZJSXaFF2nkJHhJxo/04dFt4czEq6QIDAQABAoIBAHTpnWWpkvVkIH2e 8gKH6/T3Q6BWn4QWjo/zzT2LExbC6NEfH/ixZYmcUNBSnOg3U1GuDDHKY2JU8+oL ltZeYbx+uCJlEvbzQZN48UKCNQWxg3zaJ1nFAGOuysXH/34+3lN0NPopyYoPIZOp dKtp3ecojoURCh5y4wYEL9sBfNmegK7h71DTI9nmtyEhGBZ7WqgPlXhO2HG4HciK ouAuQy6j2aWmbIOj0lXxgw/DOzffDrtAv5lj9tiOv9MMubKxOueks3+Nl1jGSahT kuliy1rBgE/+bwxdjkS+seHwxa307MQMfS04YwqGlNNJvRw3qeQFGK85lCIYTWWp JJhRe/UCgYEA1gxjSF0BzWv/dbZwlDbFYAHfw8mYArWXYFI6XHvOJd+MG8sfuS8t uxRK5NYk6TWcTB+DSJAP7ve+5xtgCHUs96copdBOTTlL4wBNiUmee8n0nTozE2XS EGKFRRpCarWQhk7Do/vl5PYym+m2emZ/TYj2RMtZPXAc01gaWhJcOVMCgYEAs0Vo 8bECrGlHbWdYWdWeSsvlvvXOXBsBjJZDV7JVVbuJmiZ7P4P5lDwA2OT11opxkfO/ +vGaoKMe+oPCvvwO7b0D0nd5jmP/NVK7zfY9J5DyhPAom5FJl3R2ljXdepcgzwBB yEF33VI96nszWTXJD3FFuXLrWTG50zGql+cnd1MCgYAbOdgnDC1+g44q2tnXAGB6 pcJglPPQ5GgsyEjEGrtN9fFMV7nhRC787MfZ86MeRsNqq1d3k1tzee++Va0RZlYh 6hExhh1vlSoh5Zf3LnYKKNYEabK1dO4TR3TMJVrtV8raSop4AUJsrSQi0Md1KjRn GFS6y2K+fdQszbgMXOl+IQKBgE2u4zXwfXcWu+P1p3xuLAS/bFQekgipjzdLmezz kzTuakdJK5kvaERK6BcUyE7qeSJE3MkyTs4TQYZO+GHoOdPdVz2plhwUyu9hZY5v iLqPffgLVZ1sDNa7mfOnbc0Eliv9MYREkltumvPz5SFgRDsT26Hr4X4qJRsWZ5Uh jqGPAoGBAIruWGp8FyOBMfjGB69yp5OqKUzGkCGa6tHqoeGpLoQmrPbNNsUGYjcH nHFjMWA2abdPsZYh3Fk/SVdrqinuE8r6xQ0IZfIp5cBCaJkYvfNvZkODbPd/hKGE 3BaNiDkQP6W9fZO9aWOF/iBUQd52QThXMdx5EoDh6+gUl1OASVBE -----END RSA PRIVATE KEY-----

But I get the error:

Username/PublicKey combination invalid (-18 LIBSSH2_ERROR_AUTHENTICATION_FAILED)

When trying the same connection via ssh-command from the shell, it works!

Any additional hints?

Regards Kallewirsch

In reply to Re^2: Net::SSH2 not base64 encoded by averlon
in thread Net::SSH2 not base64 encoded by averlon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.