i read all threads about net::ssh:erl but i have no response for my problem.
my code
my $host = <myhost>;
my $ssh = Net::SSH:erl->new($host, debug=>1, protocol=>2);
$ssh->login("xxx", "yy");
and i have the fallowing message
fedorand.gvr.hp: Reading configuration data /root/.ssh/config
fedorand.gvr.hp: Reading configuration data /etc/ssh_config
fedorand.gvr.hp: Allocated local port 1023.
fedorand.gvr.hp: Connecting to d.gvr.hp, port 22.
fedorand.gvr.hp: Remote version string: SSH-2.0-OpenSSH_4.2p1-hpn
fedorand.gvr.hp: Remote protocol version 2.0, remote software version OpenSSH_4.2p1-hpn
fedorand.gvr.hp: Net::SSH:erl Version 1.30, protocol version 2.0.
fedorand.gvr.hp: No compat match: OpenSSH_4.2p1-hpn.
fedorand.gvr.hp: Connection established.
fedorand.gvr.hp: Sent key-exchange init (KEXINIT), wait response.
fedorand.gvr.hp: Algorithms, c->s: 3des-cbc hmac-sha1 none
fedorand.gvr.hp: Algorithms, s->c: 3des-cbc hmac-sha1 none
fedorand.gvr.hp: Entering Diffie-Hellman Group 1 key exchange.
fedorand.gvr.hp: Sent DH public key, waiting for reply.
Connection closed by remote host. at /usr/lib/perl5/vendor_perl/5.8.5/Net/SSH/Perl/Kex/DH1.pm line 41
NB:
. my login is not root.
. when i try a connection by myself (without perl), it's ok
my code
my $host = <myhost>;
my $ssh = Net::SSH:erl->new($host, debug=>1, protocol=>2);
$ssh->login("xxx", "yy");
and i have the fallowing message
fedorand.gvr.hp: Reading configuration data /root/.ssh/config
fedorand.gvr.hp: Reading configuration data /etc/ssh_config
fedorand.gvr.hp: Allocated local port 1023.
fedorand.gvr.hp: Connecting to d.gvr.hp, port 22.
fedorand.gvr.hp: Remote version string: SSH-2.0-OpenSSH_4.2p1-hpn
fedorand.gvr.hp: Remote protocol version 2.0, remote software version OpenSSH_4.2p1-hpn
fedorand.gvr.hp: Net::SSH:erl Version 1.30, protocol version 2.0.
fedorand.gvr.hp: No compat match: OpenSSH_4.2p1-hpn.
fedorand.gvr.hp: Connection established.
fedorand.gvr.hp: Sent key-exchange init (KEXINIT), wait response.
fedorand.gvr.hp: Algorithms, c->s: 3des-cbc hmac-sha1 none
fedorand.gvr.hp: Algorithms, s->c: 3des-cbc hmac-sha1 none
fedorand.gvr.hp: Entering Diffie-Hellman Group 1 key exchange.
fedorand.gvr.hp: Sent DH public key, waiting for reply.
Connection closed by remote host. at /usr/lib/perl5/vendor_perl/5.8.5/Net/SSH/Perl/Kex/DH1.pm line 41
NB:
. my login is not root.
. when i try a connection by myself (without perl), it's ok