title: gitosis asking for password
body: <p>I have setup a gitosis server following instructions from <a href="http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way" rel="noreferrer">here</a>. It works fine for the initial user but I have recently added a new user. Here are the steps I took.</p>
  
  <ul>
  <li>Created an rsa keypair using <code>ssh-keygen</code> with filename johndoe.</li>
  <li>Then copied it to the keydir in gitosis admin repo.</li>
  <li>Edited the gitosis config file and added user johndoe to the list of members</li>
  <li>Commited the changes using <code>git commit -a -m "what i did"</code></li>
  <li>Pushed the changes to the server</li>
  </ul>
  
  <p>After that I tried to check out with the new keyfile. It asks for the passphrase and when I enter it correctly, it the asks for the password for user git!!!
  There is not password for user git.</p>
  
  <p>Now I have turned off PasswordAuthentication in sshd_config and now it says 'Permission denied (publickey). I have checked the git user's authorized_keys file and only one key is authorized inside it, i.e. the initial key for the gitosis admin.</p>
  
  <p>I have also double checked the permissions on the ./gitosis-admin.git/hooks/post-update hook and it has 755</p>