Last active
December 16, 2015 23:08
-
-
Save sbimikesmullin/5511595 to your computer and use it in GitHub Desktop.
bulk copy ssh key without prompts
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
echo "StrictHostKeyChecking no" > ~/.ssh/config | |
sshpass -p aU7Gra7uZX9P ssh-copy-id root@166.78.238.8 | |
# ... | |
rm ~/.ssh/config |
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
cp bot01.json 166.78.255.29.json | |
cp bot01.json 166.78.238.8.json | |
# ... | |
gnome-terminal -x bash -c "knife solo bootstrap root@166.78.255.29" | |
gnome-terminal -x bash -c "knife solo bootstrap root@166.78.238.8" | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment