Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net::SSH::Perl (yeah...again)...have you seen this?

Status
Not open for further replies.

Schoover

Programmer
Sep 27, 2005
10
0
0
US
Hi All, I have searched and read all the old posts on this module. However I'm still having this problem, seemingly regardless of the host/client OS. Below is my debug output, it seems to hang on some kind of key exchange, and I've went as far as to turn most of the ssh options off, with the same result.

CODE:
my $host = <myhost>;
my $ssh = Net::SSH::perl->new($host, debug=>1, protocol=>2);
$ssh->login('root', $xxx);

DEBUG OUTPUT:
elm: Reading configuration data /export/home/schoover/.ssh/config
elm: Reading configuration data /etc/ssh_config
elm: Connecting to <myhost>, port 22.
elm: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
elm: Net::SSH::perl Version 1.28, protocol version 2.0.
elm: No compat match: OpenSSH_3.9p1.
elm: Connection established.
elm: Sent key-exchange init (KEXINIT), wait response.
elm: Algorithms, c->s: 3des-cbc hmac-sha1 none
elm: Algorithms, s->c: 3des-cbc hmac-sha1 none
elm: Entering Diffie-Hellman Group 1 key exchange.
elm: Sent DH public key, waiting for reply.
Connection closed by remote host. at /usr/perl5/site_perl/5.8.4/Net/SSH/Perl/Kex/DH1.pm line 41
 
I am guessing this is the case:

[root@someserver root]# grep Root /etc/ssh/sshd_config
PermitRootLogin no

Try logging in as a different user.

Kordaff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top