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";
| [reply] [d/l] |
I'm actually getting a similar message right now.
I've found some information that indicates this *might* be related to a "dirty" ssh connection, wherein some "junk" gets injected into the stdout or stderr, when the ssh connection should be silent.
| [reply] |
can you run the same commands using ssh from the command line?
$ ssh host umount -f /mnt/nfs_share_CrpgC
$ ssh host rm -rf /mnt/nfs_share_CrpgC
Also, Net::SSH::Perl is not being maintained anymore and it has lots of unsolved bugs in its CPAN RT queue. You should consider using Net::SSH2, Net::OpenSSH or Net::SSH::Expect instead. | [reply] [d/l] [select] |