This isn't answer but an educated guess. Without your code, it's hard to tell what's going on. I'm not entirely sure that your problem is with Net::SSH::Perl. As I see it, it could be a system problem with configuration. Have you checked /etc/ssh_config and /etc/fstab? On the other hand, if it is a problem with Net::SSH::Perl, I'd be willing to guess that it has something to do with the MAX_PACKET_SIZE. If the rmax is over or short, it could cause the problem. I'd use Net::SSH::Perl::Constants because you must explicitly request a constant. Here's an simple example:
#!/usr/bin/perl use strict; use warnings; use Net::SSH::Perl; use Net::SSH::Perl::Constants qw(MAX_PACKET_SIZE); my $host = 'host'; my $user = 'user'; my $pass = 'pass'; my $cmd = 'perldocs Net::SSH::Perl::Constants'; my $ssh = Net::SSH::Perl->new( $host, debug => 1, protocol => 2 ); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print $stdout, "\n";

In reply to Re: Bad packet length 737686377 at /usr/lib/perl5/site_perl/5.8.8/Net/SSH/Perl/Packet.pm line 175 by Khen1950fx
in thread Bad packet length 737686377 at /usr/lib/perl5/site_perl/5.8.8/Net/SSH/Perl/Packet.pm line 175 by sugarboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.