Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm following this guide to setting up gitosis.

i run all this on the git server, including creating credentials for my user (in the git server) with the ssh-keygen -t dsa step

now, from some other machine i just want to do

git remote add origin git@GitServer:existingGitRepo.git
git push origin master:refs/heads/master

but this keeps asking for git@GitServer password! What the hell, later on the guide it says to add public keys from other users in there, i presume that amounts to run ssh-keygen -t dsa on the other machine and move the .pub file

what i'm concerned is that i will need to do this for each machine i will need to connect to this git repo??

share|improve this question
up vote 1 down vote accepted

Gitosis uses the keys to identify "users" (normally, individual people committing code) since there is only one account ("git"). If you have one person who commits code from multiple computers, then that person will either need to create an ssh key on every machine and submit all of the different public keys to gitosis, or they will need to create one ssh key and copy the private key to all the different machines they will commit code from. (Placing the same private key in multiple computers is generally frowned on, it increases the number of places the key can be stolen from).

Most guides on multiple keys seem to use for the user's public key in gitosis, but one poster here claims they just put all the public keys in one file and submitted that to gitosis.

share|improve this answer
thanks for explaining the alternatives – lurscher May 22 '11 at 4:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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