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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with net::ssh::perl

Status
Not open for further replies.

gvrgvr

Programmer
Oct 26, 2005
17
FR
i read all threads about net::ssh::perl but i have no response for my problem.

my code
my $host = <myhost>;
my $ssh = Net::SSH::perl->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::perl 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
 
Is this UNIX or WIN?

for Win
my $ssh = new Net::SSH::W32Perl($host, debug => '1');
 
the client is fedora
the server is unix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top