Hi all,

           I'm running kubuntu linux............I used Net::SSH2 to login to
remote machine, execute commands and give me the ouput.......when i run the
below code i get this error
"Segmentation fault"...........does anybody have an idea wat this error is?

---------------------------------------------------------------------------------
#!/usr/bin/perl -w
use strict;
use Net::SSH2;

my $ssh2 = Net::SSH2->new();
$ssh2->connect('10.10.10.5') or die "unable to connect to host [EMAIL 
PROTECTED]";
$ssh2->auth_password('xxz', 'xyzpass');
my $chan = $ssh2->channel();
$chan->exec('ls -la');
while (<$chan>) { print}

----------------------------------------------------------------------------------


Thanks,
Monnappa

Reply via email to