Skip Menu |

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 14341
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: alanta [...] ukonline.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.28
Fixed in: (no value)



Subject: Sent DH public key - timeout.
First error, Argument "ssh-rsa" isn't numeric in numeric eq (==) at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Key/RSA1.pm line 94, <FH> line 3. I had to fix the comparison in on line 94 of RSA1.pm as it was comparing with == and needed eq as key is string (ssh-rsa). Second error, RSA authentication failed: Can't load public key. Added protocol='2' to options to force to SSH2 now... master: Sent DH public key, waiting for reply. Connection closed by remote host. at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Kex/DH1.pm line 41 Full synopsis [root@master eg]# ./cmd.pl Enter a host name to connect to: [master] 192.168.0.251 Enter the port number of the remote sshd: [ssh] Choose a cipher from the list: [1] IDEA [2] DES [3] DES3 [5] RC4 [6] Blowfish Enter a number: [1] master: Reading configuration data /root/.ssh/config master: Reading configuration data /etc/ssh_config master: Allocated local port 1022. master: Connecting to 192.168.0.251, port 22. master: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 master: Net::SSH::Perl Version 1.28, protocol version 2.0. master: No compat match: OpenSSH_3.9p1. master: Connection established. Enter your username on that host: [root] And your password: master: Sent key-exchange init (KEXINIT), wait response. master: Algorithms, c->s: 3des-cbc hmac-sha1 none master: Algorithms, s->c: 3des-cbc hmac-sha1 none master: Entering Diffie-Hellman Group 1 key exchange. master: Sent DH public key, waiting for reply. Connection closed by remote host. at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/Kex/DH1.pm line 41 I am trying to connect with authentication via public/private keys in ~/.ssh/known_hosts , authorized_keys. I can connect using password and perls script but not via keys. Now stuck, just times out after sending DH key. Thanks Alan ps I am running Linux SUSE 9.2, Open SSH3.91 and perl 5.85.
Install IO::Handle and Math::GMP to fix timeout issues. You may want to try Net::SSH2.