GitLab端口2222

js4nwp54  于 2022-09-21  发布在  Git
关注(0)|答案(2)|浏览(230)

我无法使用端口2222克隆我有权访问的存储库。当我尝试使用
git clone git@<address>:2222/<user>/<repo>.git,我明白了

Cloning into '<repo_name>'...
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.
rekjcdws

rekjcdws1#

首先检查一下GitLab认为你和谁在一起:

ssh -Tv git@<address>:2222

您应该会收到一条Welcome to GitLab, @username!消息。

如果@username不是作为协作者添加到项目中的用户,这将解释错误消息。

或者,如果您没有看到欢迎消息,请仔细检查“Use SSH keys to communicate with GitLab”,并确保您的SSH公钥已注册到正确的用户SSH设置页面。

afdcj2ne

afdcj2ne2#

好的,这是业主方面的问题。他没有给我所需的完全权限。已经解决了。对不起,打扰了:)

相关问题