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:
Did i do anything wrong?
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.
id_xmss is used, which means you must have a ~/.ssh/config file which explicitly reference this key. DId you register id_xmss.pub in your GitHub Enterprise on-premise instance? (the stg-...github-....local one)ssh-keygen -P "" -t rsa -f ~/.ssh/id_xmss. Register the id_xmss.pub and try again.