Hi. I'm new in this list.
I have tried to make a SSH-Connection in my perl-Skript with the Net::SSH::Perl - Module.
use Net::SSH::Perl;
my $ssh = Net::SSH::Perl->new('host',debug => 1,options=>[ "BatchMode yes", "interactive yes"], protocol=>'2');
$ssh->login("user', 'password');
The output is:
paris: Reading configuration data /home/roman/.ssh/config
paris: Reading configuration data /etc/ssh_config
paris: Connecting to host, port 22.
paris: Remote protocol version 2.0, remote software version OpenSSH_4.1
paris: Net::SSH::Perl Version 1.28, protocol version 2.0.
paris: No compat match: OpenSSH_4.1.
paris: Connection established.
paris: Sent key-exchange init (KEXINIT), wait response.
paris: Algorithms, c->s: 3des-cbc hmac-sha1 none
paris: Algorithms, s->c: 3des-cbc hmac-sha1 none
paris: Entering Diffie-Hellman Group 1 key exchange.
paris: Sent DH public key, waiting for reply.
paris: Received host key, type 'ssh-dss'.
paris: Host 'marge.cs.uni-potsdam.de' is known and matches the host key.
paris: Computing shared secret key.
paris: Verifying server signature.
paris: Waiting for NEWKEYS message.
paris: Enabling incoming encryption/MAC/compression.
paris: Send NEWKEYS, enable outgoing encryption/MAC/compression.
paris: Sending request for user-authentication service.
Connection closed by remote host. at /usr/local/share/perl/5.8.7/Net/SSH/Perl/AuthMgr.pm line 43
paris is my host. But maybe anyone can help me, why i can't establish a connection. It takes nearly 3 Minutes from the first till the last line of the output. It hangs mostly after
paris: Algorithms, s->c: 3des-cbc hmac-sha1 none
and
paris: Computing shared secret key.
is this normal? I don't think so. Thanks for your help.
Roman Brunnemann
|