Every time when I write
git pull origin master
or
git push origin master
or anything else in Git Bash I have to insert my username and password to login into GitHub.
I would like instead to automatically authenticate into GitHub using my Public and Private Keys.
I've already created the keys. They are into my local machine under ~/.ssh. I've attached the public key to my account as well. But I'm always asked for the username and password instead.
What do I still have to do to be able to login direct with the keys? Many thanks!
Based on this post https://stackoverflow.com/a/15034499 we learn that git won't ask for user and password only if the repository is configured to use ssh and NOT https.
We can change this using: git remote set-url origin [email protected]:user/repo.git
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