Home > Blockchain >  Git: SSH connection not working. Permission denied (publickey)
Git: SSH connection not working. Permission denied (publickey)

Time:08-24

My git SSH connection is not working. However, I've generated an SSH-key, added it to my GitHub account and the ssh -T [email protected] is showing success.

However, the ssh -T *username*@github.com command is not working. I think this is what is causing the permission error on the git pull action I'm trying to perform.

How can I fix this?

CodePudding user response:

ssh -T *username*@github.com works only with real SSH servers, not Git hostings. For SSH at Git hostings always use username git. The real username at Git hostings must be used with HTTPS but not SSH.

CodePudding user response:

Have you added the public key in GitHub account in setting ?

  • Related