# "git@github.com: Permission denied (publickey)." on repo that previously worked

**URL:** <https://discuss.circleci.com/t/git-github-com-permission-denied-publickey-on-repo-that-previously-worked/37763>\
**Category:** Integrations and Accounts\
**Created:** [October 13, 2020, 4:04pm UTC](https://discuss.circleci.com/t/git-github-com-permission-denied-publickey-on-repo-that-previously-worked/37763 "2020-10-13T16:04:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fernfernfern](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/fernfernfern/32/8596_2.png) [@fernfernfern](https://discuss.circleci.com/u/fernfernfern)\
**Post date:** [October 14, 2020, 10:20am UTC](https://discuss.circleci.com/t/git-github-com-permission-denied-publickey-on-repo-that-previously-worked/37763/4 "2020-10-14T10:20:58Z")

</div>

Hello,

I’m not sure how to explain why the key was removed, but for future reference if you suspect any issues with the deploy key you can tell the project to “stop building” in the project settings page. Then remove the CircleCI webhook from the webhook settings page on GitHub. Then add the project back to CircleCI. This will generate a fresh deploy key and webhook for your project.

You can find more detailed instructions with screenshots [in this support article](https://support.circleci.com/hc/en-us/articles/360021666393-How-to-stop-building-by-manually-removing-the-CircleCI-webhook-and-deploy-key-from-your-GitHub-repository)

---

_[View the full topic](https://discuss.circleci.com/t/git-github-com-permission-denied-publickey-on-repo-that-previously-worked/37763)._
