Skip to content

Instantly share code, notes, and snippets.

@rtluckie
Created June 5, 2014 05:38
Show Gist options
  • Save rtluckie/0854b355b94590924335 to your computer and use it in GitHub Desktop.
Save rtluckie/0854b355b94590924335 to your computer and use it in GitHub Desktop.
bulk copy ssh keys
for X in `cat hosts.txt`
do
sshpass -p 'PASSWORD' ssh-copy-id -i ~/.ssh/id_rsa USER@${X}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment