Since a few weeks, I\'m not able to pull or push from or to the remote repository. I thought it happend when upgrading to IntelliJ IDEA 14, but I can reproduce the problem w
I solved this issue by removing the password for the ssh key in PuTTY.
I had this problem with a fork from some online course. I cloned my fork and ran into a permissions error. I couldn't understand why it was insisting I was my user from my other company. But as the previous commenter mentioned I had the Clone git repositories using ssh
setting checked and I had forgotten to add an ssh key to my new account. So I did and then still couldn't push because I got THIS error. The way I solved it was to push using the Github Desktop client.
Takeaways:
I Solved the issue simply by ensuring that I had the correct git SSH url without any trailing spaces:
git@github.com:USERNAME/REPOSITORY.git
If all else fails just go to your terminal and type from your folder:
git push origin master
That's the way the Gods originally wanted it to be.
You need to Generate a new SSH key and add it to your ssh-agent. For That you should follow this link.
After you create the public key and add it to your github account, you should use Built-in (not Native) option under Setting-> Version Control -> Git -> SSH executable in your Intellij Idea.
I changed git path and it worked.