0

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 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

9 Comments

i tried this but i am still getting the same error. debug1: Trying private key: /home/machkuri.rathan-a/.ssh/id_xmss debug1: Next authentication method: keyboard-interactive Password: debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive Password:
@VikasRathan Getting the same error is expected. The goal was to check what key was served. In your case, a non-default key 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)
yes, we have the config file but there is no id_xmss key , how can we create it ?
@VikasRathan ssh-keygen -P "" -t rsa -f ~/.ssh/id_xmss. Register the id_xmss.pub and try again.
debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information Server not found in Kerberos database. its still asking the password, i have created id_xmss key and pasted the pub one on github.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.