2

I am using a gpg-agent to generate some keys I have followed the process described in this article. I manage to see that the ssh client does display a public key whith ssh-add L which and I have added that ssh key to github. So all should be working but they dont.

When I try to connect to github I get a Permission denied (publickey).

I have read almost all of the questions in stackoverflow on the topic like this one or this one, and many more. None of the suggestions seems to be relevant.

I am using this command to debug git ssh -vT git@github.com and it gives me this error:

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 "(none)" 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).
KZiovas
  • 3,491
  • 3
  • 26
  • 47

0 Answers0