in reply to SSH2 for windows

This is probably a silly question, but have you installed libssh2?

I can't imagine that your code wouldn't bail immediately if you hadn't, but I suppose it's a reasonable troubleshooting first step.

If installing libssh2 proves difficult, you may wish to look into using Net::SSH::Perl, which IIRC (if I'm reading correctly) has no external dependencies.

Alternatively, you could look into using Net::SSH, which acts as a wrapper around an ssh binary on your system, which would hopefully work (on windows) without issues given a C:\Progra~1\Putty\putty.exe as the command => $command init setup.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^2: SSH2 for windows
by syphilis (Archbishop) on Nov 28, 2006 at 03:58 UTC
    This is probably a silly question, but have you installed libssh2?

    It's not a silly question ... but the ppm package the op installed was built against a static libssh2 library, so installation of libssh2 is not necessary :-)

    Cheers,
    Rob
      The code is completely working, I am able to connect and execute chain of commands in the remote host (through shell). But only thing is, I don't get any output (i.e. Not getting the return value after execution of the command).