I seem to have lost my permissions to a github account after pushing to it from another (local) repository. I am now receiving the following error:
git push
Permission denied (publickey).fatal:
The remote end hung up unexpectedly
I then took the following steps to regenerate a key:
ssh-keygen
Set up an ssh on my account for this laptop, using id_rsa.pub
However, this was unsuccessful. When I try the following code suggested, I receive the following error:
ssh-add -l
Could not open a connection to your authentication agent.
Any thoughts?
I solved this problem following this step-by-step instructions:
Step 1: Check for SSH keys
Step 2: Backup and remove existing SSH keys
Step 3: Generate a new SSH key
Step 4: Add your SSH key to GitHub
Then, go to GitHub, and do:
Step 5: Test everything out
If ok, you’ll see
Otherwise (it happened with me), you will see
To solve this
For original info
https://help.github.com/articles/generating-ssh-keys
https://help.github.com/articles/error-agent-admitted-failure-to-sign