|
Hi all,
is it possibile net-ssh2 module works on Windows XP and not on Seven???
The error that I get is "Unable to execute command or shell on remote system: Failed to Execute process." On XP it works!!!
use Net::SSH2;
my $ssh2 = Net::SSH2->new();
$ssh2->connect('localhost') or die "Unable to connect Host $@ \n";
#this works for passwords
$ssh2->auth_password('davide','261082') or die "Unable to login $@ \n";
my $chan = $ssh2->channel();
$chan->blocking(0);
$chan->exec('dir');
while (<$chan>){ print }
|