Skip to content

Instantly share code, notes, and snippets.

@jenikm
Created July 17, 2013 19:06
Show Gist options
  • Save jenikm/6023484 to your computer and use it in GitHub Desktop.
Save jenikm/6023484 to your computer and use it in GitHub Desktop.
Add your keys to bunch of servers
for i in server_name; do cat ~/.ssh/id_rsa.pub | ssh username@$i.hostname.com "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment