1

例子:

$ git clone git@gitlab:carlos/test.git
Cloning into 'asd'...
ssh: connect to host gitlab port 22: No route to host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我将IP和名称添加到我的主机,但即使我直接使用IP,也会发生错误。我可以使用 root 通过 SSH 登录,但它不适用于 git 用户。

我不知道这里发生了什么。

谢谢

4

1 回答 1

1

您是否正确配置了 gitlab-shell?

cd /home/git/gitlab-shell
./bin/check

如果 API 访问失败,则说明您的配置有问题。

于 2013-08-04T21:41:50.380 回答