Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Do you know where your variables are?
 
PerlMonks  

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 ='xxx.xxx.xxx.xxx'; 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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-04-24 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls