I've asked this on their mailing list, but it's not very active, so posting here...
My Net::SSH::Perl-using script hangs for at least five minutes (maybe forever?) when the number of characters in the command is large.
my $host = "blah";
my $ssh = Net::SSH::Perl->new(
debug => 1,
options => [
or die "Failed to login: $!\n";
my $cmd = "echo ";
$cmd = "."x50000;
my ($stdout, $stderr, $exit) = $ssh->cmd($cmd);
unless ($exit == 0);
Chang 50000 to 20000 and it will work. Same problem on all hosts I tested against.
Can anyone help me understand why?