【发布时间】:2020-04-08 02:00:42
【问题描述】:
正如标题所述,即使 ssh 似乎可以工作,我也无法从 Gitlab 6 服务器克隆存储库。
尝试克隆时,它看起来像这样:
git clone ssh://git@domain.de:1337/project/repository.git
Cloning into 'repository'...
Access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在项目中,我的角色是“开发者”,应该有权克隆存储库?
我还检查了我的 SSH 公钥是否工作
ssh git@domain.de -p 1337 -T
Welcome to GitLab, Anonymous!
更让我恼火的是,对于我的一个朋友来说,似乎一切正常。
编辑: 此处所述问题的主要指标是来自 SSH 测试的问候语。在工作环境中,它应该用你的名字打招呼,而不是匿名!
【问题讨论】:
-
认识到这个问题已经过时了,但仍然很有趣——为什么不使用 git clone git@domain.de:project/repository.git 呢? - 这种常见的模式不是一种选择吗?