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

Re: send su password in ssh

by chb (Deacon)
on Sep 28, 2010 at 07:05 UTC ( [id://862362]=note: print w/replies, xml ) Need Help??


in reply to send su password in ssh

Maybe something like Net::SSH::Expect is better suited for this kind of programmed remote interaction?

Replies are listed 'Best First'.
Re^2: send su password in ssh
by steve (Deacon) on Sep 30, 2010 at 15:19 UTC

    I have used Net::SSH::Expect to perform this task with both key-based and password authentication.

    Any expect-capable script should resolve any of your timing concerns.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found