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

Re: Change user to root using ssh::expect

by skx (Parson)
on Sep 01, 2009 at 19:59 UTC ( #792725=note: print w/ replies, xml ) Need Help??


in reply to Change user to root using ssh::expect

I'd double-check the password just to be sure, but if you are sure then it might be something such as a missing "\n" (or newline)

You could test for that by changing your code to read:

my $pass = 'passw0rd'; $result = $ssh->send($pass . "\n" );
Steve
--


Comment on Re: Change user to root using ssh::expect
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-08-22 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls