Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Login timed out - Net::SSH::Expect

by yagna (Novice)
on Feb 02, 2013 at 19:41 UTC ( #1016744=note: print w/ replies, xml ) Need Help??

in reply to Login timed out - Net::SSH::Expect

Hi Jose, I ran this successfully:

use strict; use warnings; use Net::SSH::Expect; my $ip =''; my $pass = 'somepassword'; my $ssh = Net::SSH::Expect->new( host => $ip, password => $pass, user => 'yagna', raw_pty => 1 ); my $login_output = $ssh->login(); sleep 10; my $who = $ssh->exec("who"); print ($who); $ssh->close();

Can you try with a login that is other than root? It is possible that you have changed config to allow root access via ssh. Let me know how it goes. Are you using perl on unix Or Perl on windows? Thanks, Yagna

Comment on Re: Login timed out - Net::SSH::Expect
Replies are listed 'Best First'.
Re^2: Login timed out - Net::SSH::Expect
by yagna (Novice) on Feb 02, 2013 at 19:43 UTC
    Also can you check out : here . This seems similar to your error message.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-10-09 00:54 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls