I have created a webspace in PLESK. I have many websites connected with GitLab. For this, I added the SSH public key to my GitLab account.
If I create a new domain and add an old existing git repository, everything works.
However, if I create a new repository (under the same GitLab account) and try to add it do a new domain, then it does not work. I get this error:
Cloning into bare repository '/var/www/vhosts/***.de/git/***.git'... Public key for the server at 'gitlab.com' is already known in '/var/www/vhosts/***.de/.ssh/git_known_hosts'. remote: remote: ======================================================================== remote: remote: The project you were looking for could not be found or you don't have permission to view it. remote: remote: ======================================================================== remote: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I don't understand the problem, because the SSH public key is the same (domain registered under same webspace). In the past, whenever I added a new repository, I could just link it to the new domain it always worked (because the public SSH key is provided in my GitLab account).
Even if I try to add the ssh public key to my GitLab account it fails, telling me that this key already exists.
What could be the problem? Is there a new policy in GitLab? Is it an issue with Plesk?
