Currently Available: Need a skilled Software Developer for your next project?
Categories
Laravel Forge

GitHub Access Error During Laravel Forge Deployment

If you encounter the following error during a deployment in Laravel Forge:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Follow these steps to resolve the issue:

  1. Access Laravel Forge Server Settings

    • Navigate to the specific server's page on Laravel Forge.
  2. Copy Server's Public Key

    • Click on "Settings" on the server's page.
    • Locate and copy the "Server's Public Key".
  3. Add the Key to GitHub

    • Visit GitHub SSH Keys Settings (https://github.com/settings/keys).
    • Under the "Authentication keys" section, click to add a new SSH key.
    • Paste the key you copied from Laravel Forge.
  4. Retry Deployment

    • Return to Laravel Forge and initiate the deployment process again.
What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Subscribe to my newsletter

Get new posts when I publish them.

I respect your privacy. Unsubscribe at any time.

Leave a Reply

Your email address will not be published. Required fields are marked *