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

Noah Huppert
  • 4,028
  • 6
  • 36
  • 58

1 Answers1

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

Plyto
  • 741
  • 1
  • 9
  • 18