Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016744]
help
Chatterbox?
[davido]: date parsing is hard. The more examples you can provide of the input (within reason) and expected output, the better.
[stevieb]: agreed. That's why I said at least a half-dozen. If enough of the different formats are present, the date/time folk may not have to request more. If they do, then at least there was a decent base to start with
[stevieb]: I do date and time transformations in both Perl and Python, but not frequently enough to not have to search for the format params etc ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-04-29 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.