3

I downloaded strawberry perl 5.20.1 to my windows 7.
I also installed cpan module.
However when I run the program, it still shows that cannot find NET::OpenSSH Should I make correct path in environment variables on my computer? If yes, how an what is the correct path?

Should I use something else instead?

I just want to login to Linux box from windows 7

Miller
  • 34,962
  • 4
  • 39
  • 60

2 Answers2

2

From perldoc Net::OpenSSH,

On the other hand, Net::OpenSSH does not work on Windows, not even under Cygwin. [..]

Net::OpenSSH does not work on Windows. OpenSSH multiplexing feature requires passing file handles through sockets, something that is not supported by any version of Windows.

mpapec
  • 50,217
  • 8
  • 67
  • 127
2

As documented in Net::OpenSSH #Known Issues

Known issues

Net::OpenSSH does not work on Windows. OpenSSH multiplexing feature requires passing file handles through sockets, something that is not supported by any version of Windows.

Alternatives

For alternatives, look at:

  1. Net::SSH::Perl as suggested in How to SSH from Perl script from windows machine to EC2 machine.

  2. Net::SSH2 as suggested in Unable to install the perl module Net::SSH::Perl on windows 64 bit.

Community
  • 1
  • 1
Miller
  • 34,962
  • 4
  • 39
  • 60
  • 1
    ... or [Net::SSH::Any](https://metacpan.org/pod/Net::SSH::Any) which provides a subset of Net::OpenSSH API on top of Net::SSH2. – salva Sep 30 '14 at 07:41