Here's what I found by searching your error message in google:
"
Revision history for Net::SSH::Perl
1.28 2005.03.17
- Patch to skip warning messages emitted by F-Secure sshd before the SSH
signature (Neal Ley).
- Fix for "Can't locate object method "blocking" via package
"IO::Handle""
error (rt.cpan.org #11674, "Dan").
"
So it looks like you need to upgrade your Net::SSH::Perl to revision 1.28
(checout CPAN faq if you don't know how).
You can find out your currently installed Net::SSH::Perl version number with
this one liner:
perl -MNet::SSH::Perl -e'print "$Net::SSH::Perl::VERSION\n";'
Hope this helps,
Yishay
>From: Eran Kaufman <era...@gm...>
>To: ssh...@li...
>Subject: [Ssh-sftp-perl-users] beginners question
>Date: Mon, 6 Feb 2006 17:10:46 +0200
>
>hi,
>trying to run simple ssh command, just to see if module is working for me,
>but i receive error i can't understand
>here's the short script:
>
>#!/usr/bin/perl
>
>$host = "10.106.135.196";
>$user = "user";
>$pass = "password";
>$cmd = "ls";
>
>use Net::SSH::Perl;
>my $ssh = Net::SSH::Perl->new($host);
>$ssh->login($user, $pass);
>my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
>
>print ("$stdout\n");
>print ("$stderr\n");
>print ("$exit\n");
>
>the error i receive is:
>
> >perl test_ssh_100.pl
>Can't locate object method "blocking" via package "IO::Handle" at
>C:/PXPerl/site/lib/Net/SSH/Perl.pm line 212, <GEN0> line 1.
> >Exit code: 9 Time: 0.411
>
>can someone assist?
>
>many thanks,
>
>Eran
|