Build using unknown ssh key fingerprint to clone from github repo

I seem to be running into an issue where the build is attempting to clone from my private github repo, using the fingerprint of ssh key that is foreign to me, and therefore fails with a:

ERROR: Repository not found.
fatal: Could not read from remote repository.

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

git command i returned 128: 

I have unfollowed, and re-followed. Remove and regenerated deploy keys, confirming they were accurate in Github. I’ve even adde my own key, yet it still resorts to the foreign key.

Any other guidance on this?

1 Like

This happens pretty consistently. It only works after unfollowing, following, re-generating a deploy key, AND submitting a new commit, thus triggering a new build. When I restart the failing build with the foreign key, it still uses the foreign key. After submitting a new commit, it uses the correct key.

Then opening another PR, which triggers a build, resorts back to the same foreign key…

Is there a way I can just start from scratch on this?

This has just started happening for us as well over the weekend.

For a little more context, our “start container” logs say the following at the end:

Suppressing install of ssh keys for fork PR builds
fatal: No such section!
fatal: No such section!

Yet the PR build is not from a fork at all.

We enabled the “only build on PR” option last week and it appeared to be working fine. Turning it off again and rebuilding without cache makes no difference.

I’ve juggled the SSH user and deploy keys and tried building as various users with different permissions on the repo, same problem.

Where it says Checkout using CircleCI fork PR checkout user key: xxx the fingerprint it references doesn’t exist in our project settings.

This is a big issue!

I’m running into this exact same issue:


Suppressing install of ssh keys for fork PR builds fatal: No such section! fatal: No such section!


Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.

ERROR: Repository not found. fatal: Could not read from remote repository.

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

git command i returned 128:

Removing the project and re-adding it was the only thing that did the trick.