I have some arbitrary number of servers with the same user/pass combination. I want to write a script (that I call once) so that
is called for each server. Since they all have the same user/pass this should be easy but
ssh-copy-id wants me to type the password in separately each time which defeats the purpose of my script. There is no option for putting in a password, ie
ssh-copy-id -p mypassword user@myserver.
How can I write a script that automatically fills in the password field when
ssh-copy-id asks for it?