Efficient way is to set password less authentication on all servers and then add a loop in your script plus a file containing a list of the servers:
while read -r server
ssh user@$server "command"
done < $SERVER
--- INFO. ADDED ----
tutorial for password-less login using ssh.
Note: You will need to login on all servers then, and put ssh keys there.