Reputation: 39
I have dozens of perl script on linux server, and I want use some of the script on my desktop. I have active perl installed on my system.
My question is since windows does not have native ssh how I can use the script? My script is use to login to cisco devices via ssh.
Any suggestions or ideas? Thanks in advance.
Upvotes: 3
Views: 229
Reputation: 118625
I, for one, love Cygwin whenever I would like to pretend that my Windows box is actually a Linux box. Which is most of the time. In particular, I would rather install Cygwin's openssl
package rather than try to build and/or configure libssh2 on Windows. There are a lot of things I would rather do than build and configure libssh2 on Windows.
I also find that there is less work to do in porting a Perl script from Linux to run on Cygwin than to run on Windows (though what work there is to do is less well documented).
Upvotes: 1
Reputation: 67890
The documentation for Net::SSH::W32Perl says:
This module provides limited Net::SSH::Perl functionality under MSWin32 (ActivePerl). See Net::SSH::Perl for a functional description.
Upvotes: 2
Reputation: 3995
You might also want to consider using Strawberry Perl
Aside from that, you should be able to run your scripts in the Windows command line using:
perl scriptname.pl
You can also associate the .pl file extension with Perl and double click on them to start them in the command window. I assume that ActivePerl does this by default. I know that Strawberry Perl does.
Upvotes: 1