I have a file (lets say "thisfile.sh" for example) I would like to copy to multiple servers (of which some may require password authentication) at once upon launching my bash file, presumedly with SCP. All the server addresses are written one line at a time in a text document, lets say the file's called "ServerList", for example:
firstname.lastname@example.org email@example.com firstname.lastname@example.org [...]
How can I achieve this?
Edit: I thought about this a little more, and I'd still like to get this done with bash as a starter, I'll use an alternative a little later. How'd I suppose I'd get it done is by using the SCP copy command, and a variable in place of my destination, a little something like this scp myfile $Server:~/myfile. This way, I'm pretty sure I will need to use a Loop of some sort, so it would go through all the lines as I copy it.