title: GitLab requires git@localhost password to push to a repo
body: <p>I'm trying to get GitLab up and running on my server. I followed the installation instructions at the gitlab github page and everything went well.</p>
  
  <p>The issue is, when I create a repo and try to</p>
  
  <pre><code>sudo git push -u origin master
  </code></pre>
  
  <p>I am prompted for 'git@localhost's password: '</p>
  
  <p>The git user doesn't have a password, so this is a problem.</p>
  
  <p>Other people who have run into this problem suggested adding git to AllowedUsers in my sshd conf but I don't have an AllowedUsers field in there, so that doesn't seem to be an issue.</p>
  
  <p>I'm still pretty new to ssh stuff so I believe its some sort of ssh key issue, though I tried to add all relevant ssh keys to /home/git/.ssh/authorized_keys and verified that there are no line breaks in the file.</p>
  
  <p>Just FYI, my install completely passes the test provided in the gitlab wiki:</p>
  
  <pre><code>sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
  </code></pre>
  
  <p>Any suggestions much appreciated!</p>
  
  <p>EDIT</p>
  
  <p>So, I finally got around this by just committing to a repo from a different machine.  As it was, I was SSHed into the same machine that gitlab was running on.  As soon as I tried to commit from a machine other than the host, it worked great.  So, that may be a solution for some people (it is for us, since we develop on seperate machines than our servers).  </p>
  
  <p>This is still an open-ended issue for anyone trying to host and develop on the same machine who has run into this.  </p>