in reply to Net::SSH2 shell in Windows

Hi, it almost sounds like your password session has expired. Just as some educated guesses, try these code additions and see what you get. Also see Net::SSH2 just hangs up without any output
my $ssh2 = Net::SSH2->new(); $ssh2->debug(1); ...... ..... $chan2->close; my $chan3 = $ssh2->channel(); if( $ssh2->auth_ok ){ print "auth ok"} else{ print "auth lost\n" } $chan3->blocking(0); # try to set blocking 0 $chan3->shell();

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Net::SSH2 shell in Windows
by coldmiser (Hermit) on Jun 27, 2012 at 16:57 UTC

    It shows "auth ok" so that appears correct and adding blocking didn't show much.

    The debug log ends up pretty long, but the only real differences I can see from $chan1/$chan2 and $chan3 is the 'revents' entry states 129 for $chan1/$chan2 and it shows 1 for $chan3.

    Not sure how this helps me though, I'm having a tough time trying to digest the debug log.