Reputation: 35
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.
Upvotes: 2
Views: 76
Reputation: 10559
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
Upvotes: 1
Reputation: 4061
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.
Upvotes: 2