Copying authorized keys to all my boxes

I wrote the ssh key copying script a while ago and this evening I revisited it with the intention of running it. With a minor modification here's the output it produced:


fetching the id_dsa.pub from 192.168.1.159
fetching the id_dsa.pub from 192.168.1.159
fetching the id_dsa.pub from 192.168.1.106
fetching the id_dsa.pub from 192.168.1.106
fetching the id_dsa.pub from 192.168.1.184
fetching the id_dsa.pub from 192.168.1.184
fetching the id_dsa.pub from 192.168.1.177
fetching the id_dsa.pub from 192.168.1.105
fetching the id_dsa.pub from 192.168.1.104
fetching the id_dsa.pub from 192.168.1.104
fetching the id_dsa.pub from j--r.info
fetching the id_dsa.pub from j--r.info
copying authorized_keys to 192.168.1.159
copying authorized_keys to 192.168.1.159
copying authorized_keys to 192.168.1.106
copying authorized_keys to 192.168.1.106
copying authorized_keys to 192.168.1.184
copying authorized_keys to 192.168.1.184
copying authorized_keys to 192.168.1.177
copying authorized_keys to 192.168.1.105
copying authorized_keys to 192.168.1.104
copying authorized_keys to 192.168.1.104
copying authorized_keys to j--r.info
copying authorized_keys to j--r.info

To run the script I used the following:

alias gak="rcscript //job:gen_authorized_keys http://rorbuilder.info/r/ssh.rsf http://jamesrobertson.eu/dynarex/2012/may/05/machines-i-ssh-into.xml password-052012_lookup.xml" gak

I can now log into each box without requiring a password which is just as well because I find my new passwords troublesome to type let alone remember.

The file password-052012_lookup.xml is private but you can find out how it was created from my code snippet Introducing the Dynarex-password gem [jamesrobertson.eu]

Tags:
Source:
2118hrs.txt
Published:
05-05-2012 21:18