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

BernieC has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to get a Net::SSH2 program working and I'm running into a snag. The code seems to be straight from the manual and is dead simple;

$ssh2->connect(HOST) or $ssh2->die_with_error ; $ssh2->auth_password($login{user}, $login{password}) ; $ssh2->auth_ok() ; print "Logged in\n" ; my $chan = $ssh2->channel() or ssh2->die_with_error ; print "never get here\n" ;

It zips through connecting and authenticating and then just hangs there -- the channel() never returns. I haven't a clue what I've done wrong...