#!/bin/bash for ip in `cat hosts|grep .adm.auro.re`; do sshpass -v -p "6+Fwa9h2L>L6]C*y" ssh-copy-id -o StrictHostKeyChecking=no fpoutre@$ip done