I am unable to connect to my own custom provider. I have added the SSH key to my own Gitlab user account.
But I receive a message from Forge that it could not pull the repository.
getaddrinfo <custom-domain>:<custom-port>: Name or service not known
Does anyone have any idea how to fix this problem?
There are several reasons Forge may not be able to access your GitHub, GitLab or Bitbucket repository. First, you should try refreshing the source control API token that is linked to Forge via your account profile's "Source Control" tab.
Forge attempts to access your repository using your source control provider's API. The API credentials that will be used are the credentials tied to the account of the person who owns the Forge server. Note that if the Forge server is shared with you via a circle, it will use the circle owner's API credentials. You should ensure this person has full access to the repository on GitHub.
Also if it's under an organization, you need to grant Forge access to the organization to access the repository.
If all else fails, see if you have auth logs for Gitlab or contact Forge for help with the port.
So non of these are the issue. I logged in to the server and tried to manually pull the git repository from the server managed by Forge. git clone ssh://git@gitlab.... and this did work without any problem.
So I know that SSH key is correctly installed on my personal gitlab server.
Solution to your problem. The issue is that Forge for some reason is creating a different public key for each site you add . Therefore you must go inside the website folder cat /home/site/.ssh/id_rsa.pub Then add this key to your provider github , gitlab etc...
Forge has the worst customer service of all time .. they take more than a day to answer 1 question. and more times than one I had to do their job ... ( I am paying premium for their garbage ) so ... if you have another alternative .. don.t ever use FORGE