title: Capistrano and Rails deployment, unable to access bitbucket repo from ubuntu server
body: <p>I have an Ubuntu server which can successfully deploy a Rails project to. I have created a new project, and would like to deploy this to the same server. But i am having a problem with accessing the bitbucket repo the code is stored on during the Capistrano deployment.  </p>
  
  <pre><code>DEBUG [60fbbd0f] Command: /usr/bin/env chmod +x /tmp/&lt;project_name&gt;/git-ssh.sh
  INFO [60fbbd0f] Finished in 0.098 seconds with exit status 0 (successful).
  INFO [b7870f98] Running /usr/bin/env git ls-remote --heads git@bitbucket.org:rmac/&lt;project_name&gt;.git as www-data@88.xxx.xxx.xxx
  DEBUG [b7870f98] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/&lt;project_name&gt;/git-ssh.sh /usr/bin/env git ls-remote --heads git@bitbucket.org:rmac/&lt;project_name&gt;.git )
  DEBUG [b7870f98]    conq: repository does not exist.
  DEBUG [b7870f98]    fatal: Could not read from remote repository.
  DEBUG [b7870f98]    
  DEBUG [b7870f98]    Please make sure you have the correct access rights
  DEBUG [b7870f98]    and the repository exists. 
  </code></pre>
  
  <p>I have tried this</p>
  
  <p><a href="https://stackoverflow.com/questions/28375506/sshkitrunnerexecuteerror">SSHKit::Runner::ExecuteError</a></p>
  
  <p>and other answers but to no avail. I have checked my server processes and ssh agent is running. I find it difficult to understand seeing as my other project deploys to the server no problems. I am using the same machine, the same deployment keys, the same bitbucket account. </p>
  
  <p>Any ideas? </p>
  
  <p>Thanks</p>