title: Adding SSH Key to authorized_keys: permission denied(publickey)
body: <ul>
  <li>I have an <code>id_rsa</code> and <code>id_rsa.pub</code> on my computer also tied into my BitBucket account. </li>
  <li>As I understand I can use this public key anywhere I please <em>(as long as my private matches).</em></li>
  </ul>
  
  <p><strong>The Problem</strong>: I cannot figure out how to get any server to accept the public key, do you see what I've done wrong?</p>
  
  <pre><code> $ cat id_rsa.pub &gt;&gt; authorized_keys
  
   $ service ssh restart  (I suppose this isn't needed)
  
   $ git pull origin master
  
   $ Permission denied(publickey)
  </code></pre>
  
  <p>What am I doing wrong? I've been stuck for days. </p>