R
Reinhard Glauber
if I use putty to connect to a ssh server it takes just 1 or 2 seconds
but with the perl::ssh module it takes about 10 seconds, and the "dir" command is not executed (its openssh on a windows machine)
thanks
use Net::SSH:
erl;
my $host = '192.168.3.235';
my $user = 'susi';
my $cmd = 'dir';
my $password = 'helpme';
my $ssh = Net::SSH:
erl->new($host, port=>22);
$ssh->login($user, $password);
my($out, $err) = $ssh->cmd($cmd);
print $out;
but with the perl::ssh module it takes about 10 seconds, and the "dir" command is not executed (its openssh on a windows machine)
thanks
use Net::SSH:
my $host = '192.168.3.235';
my $user = 'susi';
my $cmd = 'dir';
my $password = 'helpme';
my $ssh = Net::SSH:
$ssh->login($user, $password);
my($out, $err) = $ssh->cmd($cmd);
print $out;