无法通过SSH克隆/推送

时间:2013-08-01 16:54:09

标签: git ssh gitlab

示例:

$ 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用户不起作用。

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

由于

1 个答案:

答案 0 :(得分:1)

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

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

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

相关问题