gpt4 book ai didi

gitlab SSH key 项目克隆问题

转载 作者:太空狗 更新时间:2023-10-29 14:23:27 26 4
gpt4 key购买 nike

我刚开始使用 GIT。我知道添加、提交、推送和 pull 的基础知识。

我的团队项目存储在 gitlab 上。我在工作时设置了我的公共(public) SSH key ,以便我们在项目上一起工作。
我们试图在家工作,所以我正在设置另一个 SSH key ,我可以克隆该项目。我正确设置了 SSH key (我确定了这一点...它说我在 gitlab 上存储了两个 SSH key )但是当我运行 git clone 命令时收到此消息...我拥有对存储库的完全访问权限...我被列为所有者。
我在想也许我的 mac 有问题。也许我没有配置什么?

ryans-imac:~ ryanchampin$ git clone git@gitlab.synapseny.com:acr-booth.git
Cloning into ‘acr-booth’…
ssh: connect to host gitlab.synapseny.com port 22: Operation timed out
fatal: Could not read from remote repository.

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

最佳答案

首先,通过从安装目录运行此命令来检查您的 GitLab 服务器是否已成功配置:bundle exec rake gitlab:check

接下来,您应该尝试通过运行以下命令来设置 gitlab-shell:bundle exec rake gitlab:shell:setup

关于gitlab SSH key 项目克隆问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26316163/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com