I am trying to add a repository to the server trough FORGE but it keeps saying :
Cloning into '[website address]'...
[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.
I have added all the keys to the right places ...
I talked to the customer support which btw is near to non-existent and no help it seems.
I went to my server and just realized that is making a diferent publickey for each site you add on the server. So i took that key past it to github and it work ...
This is a new problem because I have more than 1 server and I never encountered this error before. Is there anybody who had the same issue and solved it?
@allex this was oddly helpful/unhelpful :) You left out both the problem and the solution!
Problem, you created the site in isolation. When you do that it overrides the servers default settings with site specific settings that need to be used in instead. Since each site is in isolation they each have their own nginx control and are separated and essentially look like different little servers which now need different keys.
It would certainly be more helpful if it was mentioned anywhere except for the one line right above the key in the site meta section I certainly agree 😁. So if you made your site in isolation, go to the
site > meta > site's deploy key and use that instead. Hope that helps you and the next few people who wander onto this one.