Created
September 16, 2016 16:11
-
-
Save samjaninf/f92530e2c56ccfc677def2897bbd4293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for ip in `cat /home/list_of_servers`; do | |
ssh-copy-id -i ~/.ssh/id_rsa.pub $ip | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment