Gitlab ssh已启用,但不再允许克隆/推送/etc
直到最近,我才能够通过SSH推送到GitLab。我们改变了一些配置,所以我在整理问题时遇到了问题。最大的变化是我现在在一个VPN上,项目变更了所有者,IP受到了限制。我觉得这与知识产权限制有关Gitlab ssh已启用,但不再允许克隆/推送/etc,git,ssh,gitlab,Git,Ssh,Gitlab,直到最近,我才能够通过SSH推送到GitLab。我们改变了一些配置,所以我在整理问题时遇到了问题。最大的变化是我现在在一个VPN上,项目变更了所有者,IP受到了限制。我觉得这与知识产权限制有关 ssh-Tgit@gitlab.comprints欢迎来到GitLab,@myUsername因此ssh连接正在工作 但是,如果我尝试克隆、推送等,它会失败并出现各种错误(添加在下面),但最终会显示,请确保您拥有正确的访问权限,并且存储库存在 我已经尝试了各种方法(添加到下面),主要是根据我找到的其他答案
ssh-Tgit@gitlab.com
prints欢迎来到GitLab,@myUsername代码>因此ssh连接正在工作
但是,如果我尝试克隆、推送等,它会失败并出现各种错误(添加在下面),但最终会显示,请确保您拥有正确的访问权限,并且存储库存在
我已经尝试了各种方法(添加到下面),主要是根据我找到的其他答案修改遥控器,以在各种功能中使用我的用户名。它们都不起作用我可以通过https推送/克隆
在gitlab中是否有需要允许的IP或需要设置的其他配置
我尝试过的一些事情:
git远程添加源git@myUsername.gitlab.com:companyName/projectName.git
git远程添加源git@gitlab.com:companyName/projectName.git
git远程添加源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.
建议:
- 仔细检查存储库的配置:
- 为HTTPS身份验证配置存储库
- 启用GitLab详细日志记录:docs.GitLab.com/ee/administration/logs.html
“它因各种错误而失败”和“我尝试了各种事情”都是毫无帮助的:(建议:启用GitLab详细日志记录:没错,我在帖子中添加了错误。我将尝试详细日志记录。
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.