title: Github Server accepts key but Permission denied (publickey)
body: <p>I am using a <code>gpg-agent</code> to generate some keys I have followed the process described in this <a href="https://opensource.com/article/19/4/gpg-subkeys-ssh#:%7E:text=To%20get%20gpg%2Dagent%20to,conf.&amp;text=Optionally%2C%20you%20may%20want%20to,add%20to%20load%20the%20keys" rel="nofollow noreferrer">article</a>. I manage to see that the ssh client does display a public key whith <code>ssh-add L</code> which and I have added that ssh key to <code>github</code>. So all should be working but they dont.</p>
  <p>When I try to connect to github I get a <code>Permission denied (publickey)</code>.</p>
  <p>I have read almost all of the questions in stackoverflow on the topic like <a href="https://stackoverflow.com/questions/2643502/git-how-to-solve-permission-denied-publickey-error-when-using-git">this one</a>  or <a href="https://stackoverflow.com/questions/57734669/gitgithub-com-permission-denied-publickey">this one</a>, and many more. None of the suggestions seems to be relevant.</p>
  <p>I am using this command to debug git <code>ssh -vT git@github.com</code> and it gives me this error:</p>
  <pre><code>debug1: Offering public key: (none) RSA 
  SHA256:C7CwytJPJh7ZIlJO2EAcDyIPc0ZwrMd+0DrZhdUoE9o agent
  debug1: Server accepts key: (none) RSA SHA256:C7CwytJPJh7ZIlJO2EAcDyIPc0ZwrMd+0DrZhdUoE9o agent
  sign_and_send_pubkey: signing failed for RSA &quot;(none)&quot; from agent: agent refused operation
  debug1: Trying private key: /home/kostas/.ssh/id_rsa
  debug1: Trying private key: /home/kostas/.ssh/id_dsa
  debug1: Trying private key: /home/kostas/.ssh/id_ecdsa
  debug1: Trying private key: /home/kostas/.ssh/id_ecdsa_sk
  debug1: Trying private key: /home/kostas/.ssh/id_ed25519
  debug1: Trying private key: /home/kostas/.ssh/id_ed25519_sk
  debug1: Trying private key: /home/kostas/.ssh/id_xmss
  debug1: No more authentication methods to try.
  git@github.com: Permission denied (publickey).
  </code></pre>