I have a web application which takes users ssh-public key via the browser just like github or gitorious does. It grants ssh access to the user by placing the key in the users home directory.
Now I want to copy this key to other servers to grant access to the other servers for users. Is there any sane way of doing this and copying this ssh key on demand to other servers?
I am storing the public key in the database.
There is an ldap server which has accounts for all the users. There are a couple of servers in the backend like a git server, a test server, a deploy server etc. And the web application and git server are on the same node.
Now the key is getting added in the git server and I would like to place the ssh key automatically on test and deploy servers, so that they can login there. Heard of something called keychain but couldn't understand it totally. Will keychain help me to do the server-server communication? Hope I am putting it the right way now.