10

In Cloud9 whenever I try and push to a github repository with the terminal I get the following error:

fatal: Authentication failed

I am using

git push origin master

to push to the repository. I have my ssh key added in github so that is not the problem.
enter image description here

1 Answer 1

14

Probably you cloned your repo into Cloud9. You might need to change remote origin from https to SSH otherwise authentication errors will persist.

Use Solution # 2 from Douglas C. Ayers' Cloud9 FAQ:

git remote set-url origin YOUR_REMOTE_SSH_URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.