Managing authorized_keys on a large number of hosts Managing authorized_keys on a large number of hosts unix unix

Managing authorized_keys on a large number of hosts


I'd checkout the Monkeysphere project. It uses OpenPGP's web of trust concepts to manage ssh's authorized_keys and known_hosts files, without requiring changes to the ssh client or server.


I use Puppet for lots of things, including this.(using the ssh_authorized_key resource type)


I've always done this by maintaining a "master" tree of the different servers' keys, and using rsync to update the remote machines. This lets you edit things in one location, push the changes out efficiently, and keeps things "up to date" -- everyone edits the master files, no one edits the files on random hosts.

You may want to look at projects which are made for running commands across groups of machines, such as Func at https://fedorahosted.org/func or other server configuration management packages.