Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 30, 2005, 3:42 pm
rate this thread
I tried using Net::SSH Perl, building it into Active Perl 5.8.6.
It was compiled on Unix Platform, Solaris 10. But when I try to run a
script that uses Net::SSH, it fails. It connects with the other
machine, but computations take a long time. And due to this, it takes
about 3-4 minutes and the other side rejects the connection, resulting
in a broken pipe.
Here is a snapshot of the run:
bash-2.05b# perl perl-ssh.pl priems45 root opticall
unknown: Reading configuration data //.ssh/config
unknown: Reading configuration data /etc/ssh_config
unknown: Allocated local port 1023.
unknown: Connecting to priems45, port 22.
unknown: Remote protocol version 2.0, remote software version
unknown: Net::SSH::Perl Version 1.28, protocol version 2.0.
unknown: No compat match: OpenSSH_3.9p1.
unknown: Connection established.
unknown: Sent key-exchange init (KEXINIT), wait response.
unknown: Algorithms, c->s: 3des-cbc hmac-sha1 none
unknown: Algorithms, s->c: 3des-cbc hmac-sha1 none
unknown: Entering Diffie-Hellman Group 1 key exchange.
unknown: Sent DH public key, waiting for reply.
unknown: Received host key, type 'ssh-dss'.
unknown: Permanently added 'priems45' to the list of known hosts.
unknown: Computing shared secret key.
unknown: Verifying server signature.
unknown: Waiting for NEWKEYS message.
unknown: Enabling incoming encryption/MAC/compression.
unknown: Send NEWKEYS, enable outgoing encryption/MAC/compression.
unknown: Sending request for user-authentication service.
Net::SSH built into another version of perl works fine on a Solaris 8
Please let me know what the problem may be which results in the
"broken pipe" error. I could make out that the server is closing
the connection because the client (where Net::SSH perl is installed) is
slow in its computation (Maybe some problem with ssh perl)
Could anyone help me in this regard?
Re: Problem with Net::SSH Perl
Avi> Net::SSH built into another version of perl works fine on a
Avi> Solaris 8 Machine. Please let me know what the problem may be
Avi> which results in the "broken pipe" error. I could make out that
Avi> the server is closing the connection because the client (where
Avi> Net::SSH perl is installed) is slow in its computation (Maybe
Avi> some problem with ssh perl)
You can verify this with debugging info from the remote end and/or by
looking at the network traffic and seeing which side closes the
- » possible? ssh-connection as XP- network connection
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum