Why it keeps asking me for my GitHub credentials?

ssh
github
git

#1

I’ve been using C9 for a couple of months, I added my SSH key to my GitHub account and when I did a git push it didn’t ask for my username and password, however, since the past Monday, it does!

I have not changed SSH keys or anything, but it’s kinda annoying to type my credentials every single time I am doing a push to GitHub.

What could be wrong guys? and how can I solve it?

Thank you so much!


#2

Hey @Oxyrus :slightly_smiling:,

Check out this SO on the subject:

A common mistake is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking the ssh button left to the URL field and updating the URL of your origin remote like this:

git remote set-url origin git@github.com:username/repo.git

answered Jul 3 '11 at 21:25
Tekkub

If you can’t user ssh for security restrictions (like me) you can do:
git remote set-url origin https://name:password@github.org/repo.git

– Bruno Berisso Jan 31 '13 at 17:23

:book: :snail:


#3

Thanks @mikeumus but I found it weird, since I created the repo and used the instructions than it gives you everytime your repository is empty, I’ve done that before and worked, no idea what happened this time.