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 <fgou...@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.