title: GitLab: Can't push code to server?
body: <p>I've installed GitLab on an Ubuntu Server.
  Everything seems to work fine except I can't push/pull/clone to/from the server.</p>
  
  <p>When I push I get the general error message:</p>
  
  <pre><code>fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>I've tried everything from hours of googling, but I can't seem to locate a problem.</p>
  
  <pre><code>sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
  </code></pre>
  
  <p>Runs fine, OK across the board!</p>
  
  <p>I can SSH into git@adress.adress
  I get: </p>
  
  <pre><code>PTY allocation request failed on channel 0
  Welcome to GitLab, Anonymous!
  </code></pre>
  
  <p>When I do:</p>
  
  <pre><code>ssh git@adress.adress "ls /location/of/git/dir"
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Not allowed command
  </code></pre>
  
  <p>The website is running, when I create a repository on the site it appears in /home/git/repository/</p>
  
  <p>But I still can't push to it.</p>
  
  <p><strong>I followed this guide:</strong> </p>
  
  <p><a href="https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md">https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md</a></p>
  
  <p>and this guide to get it running on apache:</p>
  
  <p><a href="http://shanetully.com/2012/08/running-gitlab-from-a-subdirectory-on-apache/">http://shanetully.com/2012/08/running-gitlab-from-a-subdirectory-on-apache/</a></p>