Authorising the keys on all my LAN boxes

I use the following command to authorise the keys on all my LAN boxes:

alias gak="rcscript //job:gen_authorized_keys http://www.jamesrobertson.eu/rorb/r/ssh.rsf http://a0.jamesrobertson.eu/dynarex/ssh-hosts.xml password-052012_lookup.xml"

It automates what I would normally do manually, which is to copy all the id_dsa.pub entries into an authorized_keys file, then copy that file to the ~/.ssh directory of all boxes.

When a new box is added to the network I simply run ssh-keygen, add the details to the ssh-hosts.txt file, publish it, and then re-run the gak command.

Resources

Tags:
Source:
2014hrs.txt
Published:
15-11-2012 20:14