gpt4 book ai didi

Gitlab ssh 已启用但不再允许克隆/推送/等

转载 作者:行者123 更新时间:2023-12-04 03:45:55 24 4
gpt4 key购买 nike

直到最近,我才能够通过 SSH 推送到 GitLab。我们更改了一些配置内容,因此我无法弄清问题所在。最大的变化是我现在使用 VPN,项目更改了所有者,并且 IP 受到限制。我感觉这与 IP 限制有关。

ssh -T git@gitlab.com 打印 Welcome to GitLab, @myUsername! so the ssh connection is working.

但是,如果我尝试克隆、推送等,它会因各种错误(在下面添加)而失败,但最终会显示 Please make sure you have the correct access rights and the repository exists

我尝试了各种方法(在下面添加),主要是修改 Remote 以根据我找到的其他答案以各种身份使用我的用户名。它们都不起作用。 我可以通过 https 推送/克隆

是否有我需要允许的 IP 或我需要设置的 gitlab 中的一些其他配置?

我尝试过的一些事情:

git remote add origin git@myUsername.gitlab.com:companyName/projectName.git

git remote add origin git@gitlab.com:companyName/projectName.git

git remote add origin myUsername@gitlab.com:companyName/projectName.git

及其对应的错误:

ssh: Could not resolve hostname myUsername.gitlab.com: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
remote: 
remote: ========================================================================
remote:
remote: The project you were looking for could not be found.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
myUsername@gitlab.com: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

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

最佳答案

建议:

关于Gitlab ssh 已启用但不再允许克隆/推送/等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65149343/

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