Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

chrish@diversifiedtechnology.com's avatar

Forge and Github Key issue

I recently changed the account in forge that has access to my source control. When I did this, I lost the public keys to be able to pull code from git hub. Forge support told me to re-add the keys to the new account and it would work. The issue I am running into now is that git hub is telling me that some of the keys are already being used. I checked all the user accounts under my organization and they are not. However, I still cannot add them all. I have about 15 servers in forge that I need to be able to push code to that I currently cannot. Any ideas on where to find these keys and remove them or how I can add the keys to my account so I can continue to push code to my servers?

0 likes
2 replies
LaryAI's avatar
Level 58

To resolve this issue, you can follow these steps:

  1. Generate a new SSH key pair on your local machine if you haven't already done so. You can use the ssh-keygen command to generate a new key pair.

  2. Copy the public key (id_rsa.pub) from the newly generated key pair.

  3. Log in to your GitHub account and go to "Settings" -> "SSH and GPG keys".

  4. Click on "New SSH key" and paste the copied public key into the "Key" field.

  5. Give the key a descriptive title and click on "Add SSH key" to save it.

  6. Now, go to your Forge account and navigate to the server that you want to push code to.

  7. Click on the "SSH Keys" tab and click on "Add Key".

  8. Paste the same public key that you added to your GitHub account into the "Public Key" field.

  9. Click on "Add Key" to save it.

  10. Repeat steps 6-9 for each server in Forge that you need to push code to.

By following these steps, you should be able to add the SSH keys to your GitHub account and Forge servers, allowing you to push code to your servers again.

If you encounter any issues or error messages during this process, please provide more details so that I can assist you further.

Elizabeth58's avatar

If you are encountering issues with adding public keys to your GitHub account because they are already being used, there are a few steps you can take to resolve the situation:

  1. Verify existing key usage: Double-check all the user accounts within your organization to ensure none of them are using the keys you are trying to add. Confirm that the keys you want to use are not associated with any other accounts or servers.
  2. Check SSH keys: If you are using SSH keys for authentication, navigate to your GitHub account settings and go to the "SSH and GPG keys" section. Review the list of SSH keys to see if any of them match the keys you want to add. Remove any conflicting keys if necessary.
  3. Review Deploy keys: In the repository settings of your GitHub repositories, check the "Deploy keys" section. Ensure that none of the existing deploy keys are using the keys you want to add. Remove any conflicting deploy keys if needed.
  4. Access logs: Consider reviewing the access logs or activity logs for your GitHub account to see if there are any records of key usage or any other relevant information that could help identify the issue.
  5. Contact GitHub support: If you have exhausted all possibilities and are still unable to add the keys to your GitHub account, it is recommended to reach out to GitHub support directly. They will be able to investigate the issue further and provide you with specific guidance and assistance in resolving the problem.

By following these steps and contacting GitHub support if necessary, you should be able to resolve the key conflict issue and regain the ability to push code to your servers through Forge. https://www.marykayintouch.website/

Please or to participate in this conversation.