http://www.perlmonks.org?node_id=1001372


in reply to Unable to store the command output from Net::SSH2. Please help.

Hi Salva,

Thanks for the update, but I cannot download any extra modules, because the system from which I am running the perl scripts is not connected to the internet. I am using DWIM Perl and it only has Net::SSH2.

Hi Syphilis (Rob),

I did try your suggestion, but that still doesnt work. All I got is whats shown below

Connecting to xxx.xxx.xxx.xxx libssh2_channel_open_ex(ss->session, pv_channel_type, len_channel_type +, window_size, packet_size, ((void *)0) , 0 ) -> 0x1137a74 Net::SSH2::poll: timeout = 250, array[1] - [0] = channel - [0] events 1 - libssh2_poll returned 1 - [0] revents 128 Net::SSH2::Channel::DESTROY Net::SSH2::DESTROY object 0x9b7404

Any suggestion to a good tutorial for Net::SSH2 will really help.

Perlpetually Indebted To PerlMonks

  • Comment on Re: Unable to store the command output from Net::SSH2. Please help.
  • Download Code

Replies are listed 'Best First'.
Re^2: Unable to store the command output from Net::SSH2. Please help.
by salva (Canon) on Oct 29, 2012 at 15:06 UTC
    Well, Net::SSH::Any has no dependencies besides Net::SSH2, so it should be pretty easy to install, even without internet access. Just unpack its lib directory in the right place under the DWIN directory and you are done!