I can ssh to the server
Which server?
The pb is access from your prod server to your git server
To test, ssh in your prod server and 2nd ssh from this to your git server.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Error message
Error Output
Thu Feb 11 08:23:52 UTC 2021
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository. Please make sure you have the correct access rights
and the repository exists.
NB I already have an app in production and have updated it a few times using the forge deploy button, recently when I updated my repository am now experiencing the above issue. Any ideas on how to solve this? I can ssh to the server without any problems only having challenges on deploying.
yes vps and git server, github
So you have my answer in my first post (ssh in your prod server and 2nd ssh from this to your git server) , but you don't understand so I give you details
-1- Open a terminal localy
-2- ssh to your prod server ( vps )
-3- you should be in a terminal in your prod server
-4- ssh to your git server (github)
-5.1- if it works you should have no pb with your pull request
-5.2- if not, correct your credential or if ok (since you wrote it's ok from your local) it can be a temporary protection from github (rarely from your prod server)
-5.3- ideally test with another prod server
Please or to participate in this conversation.