Created
May 14, 2018 13:07
-
-
Save bernardoVale/bd988d94440c4c40f55463a3604bd586 to your computer and use it in GitHub Desktop.
Quickly exchange keys
This file contains hidden or 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
hosts=(host1 host2) | |
for host in "${hosts[@]}" | |
do | |
ssh-copy-id -i ~/.ssh/id_rsa.pub a_bvale@$host | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment