Skip to content

Instantly share code, notes, and snippets.

@sbimikesmullin
Last active December 16, 2015 23:08
Show Gist options
  • Save sbimikesmullin/5511595 to your computer and use it in GitHub Desktop.
Save sbimikesmullin/5511595 to your computer and use it in GitHub Desktop.
bulk copy ssh key without prompts
echo "StrictHostKeyChecking no" > ~/.ssh/config
sshpass -p aU7Gra7uZX9P ssh-copy-id root@166.78.238.8
# ...
rm ~/.ssh/config
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