in reply to how stop ssh prompt for password

SSH includes the ability to authenticate users using public keys. Instead of authenticating the user with a password, the SSH server on the remote machine will verify a challenge signed by the user's private key against its copy of the user's public key. To have a full programming control of the machine with Perl and automatic ssh-authentication you can do it this way:

Hope it helps

Casiano