Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Change user to root using ssh::expect

by skx (Parson)
on Sep 01, 2009 at 19:59 UTC ( [id://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
--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found