Created
December 8, 2018 12:28
-
-
Save niiku-y/9bd8bb254bc806f9ab06711046032493 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 | |
# copy_keyconf.sh | |
HOSTLIST="master01 master02 master03" | |
for h in $HOSTLIST | |
do | |
scp ~/.ssh/authorized_keys ubuntu@${h}:/home/ubuntu/.ssh/authorized_keys | |
scp ~/.ssh/config ubuntu@${h}:/home/ubuntu/.ssh/config | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment