例子:
$ 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 用户。
我不知道这里发生了什么。
谢谢