Bug#815724: libnet-ssh2-perl: Public key authentication fails when key generated with -a

Francois Gouget fgouget at free.fr
Mon Apr 1 16:56:57 BST 2019


Before the first step one should do:
  cd ~/.ssh

Three years later this bug is still present.
I guess that makes sense since the last changelog entry for libssh2 goes 
back to october 2016!


Fortunately there is a workaround: add this use statement right before 
the "use Net::SSH2" line:

use Net::OpenSSH::Compat::SSH2 qw(:supplant);

This causes the script to use Net::OpenSSH which actually works. 
Unfortunately this workaround will not work for all scripts but 
migrating to Net::OpenSSH is still a good idea to avoid Net::SSH2's 
compatibility and maintenance issues.


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
             Theory is where you know everything but nothing works.
            Practice is where everything works but nobody knows why.
      Sometimes they go hand in hand: nothing works and nobody knows why.



More information about the pkg-perl-maintainers mailing list