This question already has an answer here:
- How to automate SSH login with password? 8 answers
On Linux when using dsa keys I establish passwordless login with the command
ssh-copy-id -i .ssh/id_dsa.pub email@example.com
This prompts the user for user's password on target.host. My script knows the password and the user shall not be bothered, how can I do this?