Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-07 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls