On Mon, Aug 28, 2006, Ron Reidy wrote:
> Damien,
> 
> If you are truly using key authentication, you should not be prompted for a
> password.  Since you are being prompted, you will either need to use a
> "here" document or expect to provide the password.

The problem is that his script is waiting for the sudo password, not the
ssh password.

You can set the sudoers file to not require a password for certain users
(or groups, or commands, whatever) with the NOPASSWD flag.  Check the
sudoers man page for more.

Ben