Created
July 17, 2013 19:06
-
-
Save jenikm/6023484 to your computer and use it in GitHub Desktop.
Add your keys to bunch of servers
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
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