Monday, March 11, 2013

How to sync your keys to your server farm / clusters


you need sshpass and ssh-copy-id , then do;

echo "StrictHostKeyChecking no" >> .ssh/config

echo "UserKnownHostsFile=/dev/null" >> .ssh/config

cat mylistofservers.txt | xargs -P10 -I {} sshpass -p 'mypassword' ssh-copy-id {}


No comments:

load testing