#!/bin/bash for ip in `cat hosts|grep pacaterie.adm.auro.re`; do ssh-copy-id $ip done