2

I have followed the steps to configure ssh key for my git account. However I am still unsuccessful. Here is a transcript.

[John@dev gitRepo]$ ssh -T [email protected]
Hi JohnDoe! You've successfully authenticated, but GitHub does not provide shell access.
[John@dev gitRepo]$ git remote update
Fetching origin
Username for 'https://github.com':

As I understand the message in response for ssh attempt is a success. However I should not be prompted for username and password after correctly setting up ssh keys.

The repo is properly setup / cloned earlier as I can access the git account using username and password in that repo.

I appreciate your time and response to resolve this.

2 Answers 2

2

It is because your remote is still set to HTTP. You need to remove that origin and add the SSH origin to start using ssh.

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

Comments

1

SSH key is for git: protocol, e.g. "url" must look like:

[email protected]:user/repo.git

it looks to me, you are trying https:// protocol

Comments

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.