Getting error while clone the gitrepo using ssh-key

53 views Asked by At

I have created a public key after I have pasted it on GitHub then I have tried to do git clone.

But while doing the clone, it is asking for the password:

error

Did i do anything wrong?

1

There are 1 answers

9
VonC On

First, make sure you have pasted your SSH public key in your User SSH setting page of your local GitHub instance, not github.com.

Second, test if you are correctly authenticated with:

ssh -Tv [email protected]
            ^^^^^^^^^^^^^^^^^^^^^^^
            your local GitHub server name

You should see which key is used, and if yours is selected.