Skip Menu |
 

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 14170
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: jshanks [...] mistral.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 991b
Hey. I am getting Corrupted check bytes on input at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Packet.pm line 135 on some code i have implemented. I am trying to run through a list of servers, and basically i want to know if the password fails or not, if it doesn't then to initiate the command successfully and continue, however, if it does i want to make a list of the servers which have failed. I tried a very basic setup of: perl -le 'use Net::SSH::Perl; $ssh = Net::SSH::Perl->new("lon-gs1lnxsh.mistral.net", port => 22, debug => 1, interactive => 0); $ssh->login("username", "pass123"); $ssh->cmd("uname"); these are the lines in Packet.pm which is a CRC. my $stored_crc = unpack "N", $buffer->bytes(-4, 4); $ssh->fatal_disconnect("Corrupted check bytes on input") unless $crc == $stored_crc; I'm unsure however, how i can prevent it prompted for the password, despite me setting the Interactive to 0 , and also why i am getting this error. Regards Jon
Download (untitled) / with headers
text/plain 491b
[guest - Mon Aug 15 09:13:11 2005]: Show quoted text
> I am getting > > Corrupted check bytes on input at > /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Packet.pm line 135 > > on some code i have implemented.
... Show quoted text
> I tried a very basic setup of: > > perl -le 'use Net::SSH::Perl; $ssh = Net::SSH::Perl->new("lon- > gs1lnxsh.mistral.net", port => 22, debug => 1, interactive => 0); > $ssh->login("username", "pass123"); $ssh->cmd("uname");
Try removing -l from the command line (just -e not -le).
From: David Robins <dbrobins [...] davidrobins.net>
To: bug-Net-SSH-Perl [...] rt.cpan.org
Subject: Re: [cpan #14170]
Date: Mon, 15 Aug 2005 19:20:27 -0700
RT-Send-Cc:
On Monday August 15, 2005 06:13, Guest via RT wrote: Show quoted text
> Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=14170 > > > I am getting > > Corrupted check bytes on input
at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Packet.pm line 135 Show quoted text
> > on some code i have implemented. > > I am trying to run through a list of servers, and basically i want to know
if the password fails or not, if it doesn't then to initiate the command successfully and continue, however, if it does i want to make a list of the servers which have failed. Show quoted text
> > I tried a very basic setup of: > > perl -le 'use Net::SSH::Perl; $ssh =
Net::SSH::Perl->new("lon-gs1lnxsh.mistral.net", port => 22, debug => 1, interactive => 0); $ssh->login("username", "pass123"); $ssh->cmd("uname"); This is an oldie but a goodie. Try removing -l from the command line (in theory, it shouldn't matter; in practice, it does). (Hopefully you're reading the list, I'll also post a reply to the bug.) -- Dave Isa. 40:31


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.