# GitHub SSH keys

**URL:** <https://forum.freecodecamp.org/t/github-ssh-keys/199549>\
**Category:** General\
**Created:** [June 13, 2018, 1:51am UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549 "2018-06-13T01:51:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dk34](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@dk34](https://forum.freecodecamp.org/u/dk34)\
**Post date:** [June 13, 2018, 1:51am UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549/1 "2018-06-13T01:51:54Z")

</div>

I am currently working on a react app and I figured it was time to commit. When i was trying to push to github, i was getting this error

```auto
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

```

I tried to make a new SSH key but that didn’t work, and I currently don’t have any SSH keys in my github profile. If anyone could provide me with a step by step process on how to fix this error so I can push my work to github, that would be appreciated.

Cheers

---

<div class="post-metadata">

**Author:** ![Layer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/layer/32/82898_2.png) [@Layer](https://forum.freecodecamp.org/u/Layer)\
**Post date:** [June 13, 2018, 5:44am UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549/2 "2018-06-13T05:44:51Z")

</div>

What’s your system? The same error hit me few times and at the end it was keyring fault.  
Anyway, here some solved topic:  
[SO - GitHub error message](https://stackoverflow.com/questions/12940626/github-error-message-permission-denied-publickey)  
[SO - Cannot push to git repository using bitbucket](https://stackoverflow.com/questions/16074832/cannot-push-to-git-repository-on-bitbucket)  
[AskUbuntu - Ubuntu 16.04 ssh: sign\_and\_send\_pubkey: signing failed: agent refused operation](https://askubuntu.com/questions/762541/ubuntu-16-04-ssh-sign-and-send-pubkey-signing-failed-agent-refused-operation?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa) ( check all the answers, not just the accepted one)

---

<div class="post-metadata">

**Author:** ![us95](https://avatars.discourse-cdn.com/v4/letter/u/90ced4/32.png) [@us95](https://forum.freecodecamp.org/u/us95)\
**Post date:** [July 11, 2018, 9:28am UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549/4 "2018-07-11T09:28:49Z")

</div>

You can follow the below link to create a ssh key and add it in github profile

\*\*  
[https://help.github.com/enterprise/2.13/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/](https://help.github.com/enterprise/2.13/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)  
\*\*

---

<div class="post-metadata">

**Author:** ![dk34](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@dk34](https://forum.freecodecamp.org/u/dk34)\
**Post date:** [July 11, 2018, 2:13pm UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549/5 "2018-07-11T14:13:18Z")

</div>

problem was resolved, thanks all!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:55pm UTC](https://forum.freecodecamp.org/t/github-ssh-keys/199549/6 "2021-01-16T17:55:46Z")

</div>

Closed on January 16, 2021, 5:55pm UTC


