Cannot push to git repository - permission denied
You need to do in your console (if you use an a putty ssh client):
Generate the keys, if keys not exist:
cd ~/.ssh && ssh-keygen -lf ~/.ssh/id_rsa.pub
Don't forget password, entered at this step!
Output your public key to screen:
cd ~/.ssh && cat id_rsa.pub
Copy this string by click and move a mouse pointer from begin output to end. No need to press Ctrl + V or any more keys.
Log in your account on GitHub and add this public key to https://github.com/settings/ssh
Now you can use your git locally.
If you haven't already read it, you should look through the GitHub help page for this error:
Error: Permission denied (publickey)
Every time that I've had this problem, it was due to the last issue listed on that page: I didn't have the public key from my current workstation attached to my GitHub account. Of course, GitHub also provides instructions on how to attach your public key to your account.
tl;dr
Make sure your current public key is attached to your GitHub account.