I may have not understood the use of SSH key in Github completely.
I followed the Github docs [https://help.github.com/articles/generating-ssh-keys/] to create SSH key on my laptop and import the same SSH key on my Github account.
However When I tried to push my local changes to a project I have forked, the git Bash still asks for my github user id and password.
My understanding was; once I have configured SSH, I do not have to provide my gihub user account, passwords when committing changes becuase SSH takes care of it.
You can connect to GitHub using the Secure Shell Protocol (SSH), which provides a secure channel over an unsecured network.
When you set up SSH, you will need to generate a new private SSH key and add it to the SSH agent. You must also add the public SSH key to your account on GitHub before you use the key to authenticate or sign commits.
Login to github.com and bring up your account settings by clicking the tools icon. Select SSH Keys from the side menu, then click the Add SSH key button. Name your key something whatever you like, and paste the contents of your clipboard into the Key text box. Finally, hit Add key to save.
When you clone your github repository you can select http and ssh url for github project.
You can clone with HTTPS, SSH or Subversion.
I think you should select ssh to work with ssh authentication. Check your cloned git project's config. There is a remore url that you can change to ssh url.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With