Skip to content

Instantly share code, notes, and snippets.

@samjaninf
Created September 16, 2016 16:11
Show Gist options
  • Save samjaninf/f92530e2c56ccfc677def2897bbd4293 to your computer and use it in GitHub Desktop.
Save samjaninf/f92530e2c56ccfc677def2897bbd4293 to your computer and use it in GitHub Desktop.
#!/bin/bash
for ip in `cat /home/list_of_servers`; do
ssh-copy-id -i ~/.ssh/id_rsa.pub $ip
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment