Permission denied to git repo pushing

Sometimes we have an error like below when we try to push on Github.

Try to check where is your ssh key is being used by the following command:

 ssh -T -ai ~/.ssh/id_rsa [email protected]

You will get a response like this:

So, in my case, my ssh key was being used by my other GitHub account. Now you have 2 choices.

  1. Remove ssh key from other account and add to your account where you are trying to push
  2. Generate new ssh key and use it.

I did 1st as It was not needed for my other account.

Related Articles

Edit old commit message on github

Sometimes we make mistake in git commit message, especially spelling mistake. Even though I think twice before pressing the enter key after I write the…

Fix Unhandled rejection Error: EACCES: permission denied

I was trying to install gulp on my mac. But I was getting following errors while running command sudo npm install gulp -g Unhandled rejection…

Install wp-cli on windows

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser.

So I am going to tell you short, simple and easy way that how to use wp-cli on windows system.

Fix 404 error on nginx

Sometimes you get unexpected 404 error from Nginx server. And I am going to tell you how I fixed the issue. You can fix that…

The last day ( છેલ્લો દિવસ )

Hi there, The last day, yes I am talking about the last day of the year 2016. Another year passed and I became 26 in…