title: I suddenly get a Permission Denied (the contents of .git/objects files) error when trying to copy my repository via scp
body: <p>So I'm new to both git and ssh, so some basic terminology might be wrong in what I'm saying.</p>
  <p>I'm trying to copy (with <code>scp</code>) my repository (I also backup this repo via github,so it has a <code>.git</code> folder) to a remote machine that I access via ssh.</p>
  <p>It always worked before.</p>
  <p>Then I added another branch from <code>master</code> and kept working on the code on that new branch.<br />
  I don't know of anything other I changed that could be significant here.</p>
  <p>Anyways, now the old <code>scp -r</code> command to copy the repository to the remote machine uploads my normal files but it fails in &quot;<code>.git/objects</code>&quot;:</p>
  <pre><code>scp: /scratch/petzi/remote/meins/.git/objects/43/50c1b2c7306710fad08153c12fd4a394aef0fc: 
       Permission denied
  </code></pre>
  <p>And the equivalent message for all kinds of files (maybe even all, I haven't checked) in &quot;<code>objects</code>&quot;.</p>
  <p>How can I get past those error messages?</p>