I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-11-28 17:47:42-08 by oldlurker
Net::SSH2 does not work on Window
I suspect I missed something obvious when building the module. Here is the code I tried to run
use strict; use Net::SSH2; my $ssh2 = Net::SSH2->new(); if (!$ssh2->connect('svl-command') || ! $ssh2->auth_password($user, '$pwd)) { print join(':', ($ssh2->error)); exit 1; } my $chan = $ssh2->channel(); $chan->exec('/bin/ls');

Here is the result when ran via Debugger:

perl -d p.pl Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(p.pl:4): my $ssh2 = Net::SSH2->new(); DB<1$gt; c Signal SEGV at p.pl line 12
An error popup comes up when I run this without Debugger, Here is the output of perl -v:
This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 5 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 1004 [287188] provided by ActiveState http://www.ActiveState.com Built Sep 3 2008 13:16:37
Direct Responses: 9454 | Write a response
Posted on 2008-11-28 19:23:31-08 by lgastevens in response to 9453
Re: Net::SSH2 does not work on Window
Works fine for me on Windows. I have ActiveState 5.8.8 and I installed Net-SSH2 as a Win32 PPM from the Uwinnipeg repository.
Direct Responses: Write a response