1

After following all the instructions of Github in here and here step-by-step to add SSH key to my account and access it via SSH connection I am still hitting the following error:

ssh -T (my-user-name)@github.com
Permission denied (publickey)

I have also tried the step-by-step debugging of github and also this Stackoverflow thread. Yet all dead-end for me. I am operating on a Mac OS Catalina 10.15.5. Do I miss any step in between?

YHN
  • 75
  • 5

1 Answers1

0

This ssh -T (my-user-name)@github.com will always return permission denied.

You don't request a remote secure shell as "my-user-name", ever.

The instructions will always recommend to test your SSH connection with:

ssh -T git@github.com
       ^^^

Your public key, registered to your GitHub account, would then be enough for GitHub to identify you, in that git SSH session.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250