use Net::SSH::W32Perl; my $host = 'XXXX.com'; my $user = 'AAAAA'; my $pass = 'BBBBB'; my $cmd = 'ls -l'; my $ssh = Net::SSH::W32Perl->new( $host, debug => 1, protocol => 2 ); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print $stdout, "\n";