Subject: | Can't locate loadable object for module Crypt::OpenSSH::ChachaPoly in @INC |
Date: | Thu, 16 Jun 2016 17:32:33 -0700 |
To: | bug-Net-SSH-Perl [...] rt.cpan.org |
From: | r g <bracdt [...] gmail.com> |
Hello,
My program is unable to open a Net::SFTP connection because
Net::SSH::Perl::Cipher::Chacha tries to load Crypt::OpenSSH::ChachaPoly,
which doesn’t seem to exist within CPAN, and fallback to other ciphers is
not happening.
[someone@box ~]$ /tmp/temp-test-deleteme.pl
Creating SFTP connection to [IP REDACTED]
usvtalimg302: Reading configuration data /home/someone/.ssh/config
usvtalimg302: Reading configuration data /etc/ssh_config
usvtalimg302: Connecting to [IP REDACTED], port 22.
usvtalimg302: Remote version string: SSH-2.0-OpenSSH_6.6.1
usvtalimg302: Remote protocol version 2.0, remote software version
OpenSSH_6.6.1
usvtalimg302: Net::SSH::Perl Version 2.01, protocol version 2.0.
usvtalimg302: No compat match: OpenSSH_6.6.1.
usvtalimg302: Connection established.
usvtalimg302: Sent key-exchange init (KEXINIT), waiting for response.
Can't locate loadable object for module Crypt::OpenSSH::ChachaPoly in @INC
(@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Net/SSH/Perl/Cipher/ChachaPoly.pm
line 14
Compilation failed in require at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Net/SSH/Perl/Cipher.pm
line 57.
"Net::SSH::Perl::Cipher::Chacha provides Chacha20 encryption with Poly1305
support for Net::SSH::Perl.”
"This module requires Crypt::OpenSSH::ChachaPoly which provides a wrapper
to the OpenSSH Chacha and Poly1305 functions."
—
http://search.cpan.org/dist/Net-SSH-Perl/lib/Net/SSH/Perl/Cipher/ChachaPoly.pm
view
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Net/SSH/Perl/Cipher/ChachaPoly.pm
14 XSLoader::load('Crypt::OpenSSH::ChachaPoly’);
After some googling I did find this github:
https://github.com/lkinley/Crypt-OpenSSH-ChachaPoly
This commit:
https://github.com/renormalist/Net-SSH-Perl/commit/12ec269ba38d3c195997a2426198f5695a5073f3
states:
+The module Crypt::OpenSSH::ChachaPoly is required if
+you wish to use the chacha20-poly1305@openssh.com cipher.
+It can be acquired from Git Hub at:
+https://github.com/lkinley/Crypt-OpenSSH-ChachaPoly
+or using git:
+git clone https://github.com/lkinley/Crypt-OpenSSH-ChachaPoly.git
+If the module is not installed, Net::SSH::Perl will fall back on
+other ciphers.
But successfulf fallback does not appear to be happening. I’m on a box
where installing modules from outside CPAN is frowned upon, can you advise?
Thanks.