title: GitLab SSH Permission denied (publickey)
body: <p>I've followed the Gitlab instructions to set up an SSH key.</p>
  
  <p>After everything is completed, I test my settings with</p>
  
  <pre><code>ssh -T git@gitlab.com
  </code></pre>
  
  <p>but then I got an error with </p>
  
  <pre><code>git@gitlab.com: Permission denied (public key).
  </code></pre>
  
  <p>I also tried <code>ssh -Tvvv git@gitlab.com</code> to find out the problems, as below. 
  But I can't figure out how to fix it, does anybody have an idea, or could share suggestions?
  Thank you very much!</p>
  
  <pre><code>OpenSSH_8.1p1, LibreSSL 2.7.3
  .......
  debug3: send packet: type 50
  debug3: receive packet: type 51
  debug1: Authentications that can continue: publickey
  debug3: start over, passed a different list publickey
  debug3: preferred publickey,keyboard-interactive,password
  debug3: authmethod_lookup publickey
  debug3: remaining preferred: keyboard-interactive,password
  debug3: authmethod_is_enabled publickey
  debug1: Next authentication method: publickey
  debug1: Trying private key: /Users/brandon/.ssh/id_rsa
  debug3: no such identity: /Users/brandon/.ssh/id_rsa: No such file or directory
  debug1: Trying private key: /Users/brandon/.ssh/id_dsa
  debug3: no such identity: /Users/brandon/.ssh/id_dsa: No such file or directory
  debug1: Trying private key: /Users/brandon/.ssh/id_ecdsa
  debug3: no such identity: /Users/brandon/.ssh/id_ecdsa: No such file or directory
  debug1: Offering public key: /Users/brandon/.ssh/id_ed25519 ED25519 SHA256:uOKjKpgEmnKqrFAS05Ccy8+B3Uw0kzSpurUpOgH0l3k
  debug3: send packet: type 50
  debug2: we sent a publickey packet, wait for reply
  debug3: receive packet: type 51
  debug1: Authentications that can continue: publickey
  debug1: Trying private key: /Users/brandon/.ssh/id_xmss
  debug3: no such identity: /Users/brandon/.ssh/id_xmss: No such file or directory
  debug2: we did not send a packet, disable method
  debug1: No more authentication methods to try.
  git@gitlab.com: Permission denied (publickey).
  </code></pre>
  
  <p>Thank you for your patience in reading my post.</p>