Is it possible to fetch the public keys from a database instead of the authorized_keys file?

I would like to use such a setup to manage ssh access to things like git repositories for multiple users without the need to recreate the authorized_keys file every time a public key is changed or added.

link|improve this question
I'm using puppet for this – Matt Simmons Jul 20 '10 at 15:48
feedback

2 Answers

OpenSSH doesn't have this capability, as far as I'm aware. Your best bet may be to have a script automatically regenerate the file nightly (or as frequently as necessary).

Also, you might want to see this question: http://serverfault.com/questions/117072/a-system-for-distributing-ssh-public-keys

link|improve this answer
feedback

I believe that in newer openssh versions you can store keys in a users LDAP entry. If you are already using LDAP or AD for account management you should be able to leverage it for key management as well.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.