title: Getting permission denied (public key) on gitlab
body: <p>My problem is that I can't push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push :</p>
  
  <blockquote>
    <p>Permission denied (publickey) fatal : Could not read from remote repository</p>
  </blockquote>
  
  <p>From all the threads I've looked, here is what I have done :</p>
  
  <ul>
  <li>Set up an SSH key on my computer and added the public key to GitLab</li>
  <li>Done the config --global for username and email</li>
  <li>Cloned via SSH and via HTTP to check if it would resolve the issue</li>
  <li>Done the ssh -T git@gitlab.com command</li>
  </ul>
  
  <p>If you have any insight about how to resolve my issue, it would be greatly appreciated.</p>