Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::SSH2 shell in Windows

by zentara (Archbishop)
on Jun 26, 2012 at 17:56 UTC ( [id://978474]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://978474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found