in reply to Opening Linux Commands

The Expect module should help you when it's necessary to pass the password. Of course, I'm considering that the ssh program does not have an option to receive the password on the command line.

Another option is that you use IPC::Open2 or IPC::Open3 to execute the program, both can read and write at the program STDOUT and STDIN, respectively.

Anyway... why don't you keep using the RSA (or DSA) keys?

Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

Replies are listed 'Best First'.
Re^2: Opening Linux Commands
by Fletch (Bishop) on Jan 27, 2006 at 18:26 UTC

    The problem with using one of the IPC:: modules rather than Expect is that many programs which want to read a password will reopen the process' controlling terminal (i.e. /dev/tty) rather than using STDIN and bypass them completely. Since Expect runs the child process on a pty it can handle this case.

Re^2: Opening Linux Commands
by Anonymous Monk on Jan 31, 2006 at 10:03 UTC
    Heh, because it's not my choice. All MY servers use RSA keys. I just need it to work with some servers of lesser quality as well.