On Jun 2, 2005, at 2:20 PM, Ted Zeng wrote:
Anyone has seen this problem before? I searched the net and found a
couple of people
had this problem. But there were no answers to their questions.
Here is the script that I used:
$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl->new($host,%params,options =>
["BatchMode yes"]);
Googling for 'No compat match:' turned up some likely-looking
candidates, including this one:
<http://forums.devshed.com/t191670/s.html>
Based on that page, you might try using the 'protocol' option for
force Net::SSH::Perl to try an SSH2 connection first:
$params{protocol} = '2,1';
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org