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.