On Linux when using dsa keys I establish passwordless login with the command
ssh-copy-id -i .ssh/id_dsa.pub user@target.host
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?
expect
based examples from the linked questions, to provide the passwrd.