gitlab不能克隆我的git项目到虚拟机

发布于 2025-01-17 19:34:18 字数 887 浏览 2 评论 0原文

(这是我在这里的第一个问题,显然是强制性的)

因此,今天的问题涉及与新VM的GIT联系... 这是在这台计算机上配置git的方式:

https://gitlabprod.intra.lne.fr/help/help/ssh/index#see-if-you-have-have-have-an-existing-ssh-key-pair git + ssh-keygen生成 +

eval $ (ssh-agent -s) ssh-add <directory>/ssh-file.ssh
ssh -T git@giturl
git config --global http.sslVerify false

,这是我要致命的错误

:无法访问'urltoclone.git/':接收到的http代码407从代理上从代理上进行连接后,

我在其他机器上连接我解决了此问题:

git config --global http.sslVerify false

有人知道如何知道如何知道解决这个问题?

多谢 !!

在其他机器上,我使用以下方式解决了此问题:

git config --global http.sslVerify false

(this is my first question here, and apparently its mandatory)

so, today's problem concern the connection to git from a new VM...
This is how configured git on this machine :

https://gitlabprod.intra.lne.fr/help/ssh/index#see-if-you-have-an-existing-ssh-key-pair
GIT + ssh-keygen generate +

eval $ (ssh-agent -s) ssh-add <directory>/ssh-file.ssh
ssh -T git@giturl
git config --global http.sslVerify false

and this is the error I'm getting

fatal: unable to access 'urltoclone.git/': Received HTTP code 407 from proxy after CONNECT

on other machines I resolved this problem using :

git config --global http.sslVerify false

has anyone an idea how to solve this ?

thanks a lot !!

on other machines I resolved this problem using :

git config --global http.sslVerify false

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水染的天色ゝ 2025-01-24 19:34:18

http.sslverify false is:

  1. 一个坏主意,您仅将SSL证书停用
  2. https url(https:// ...),

如果您将SSH键添加到SSH-Encent中,那是因为这是因为您想使用SSH URL,

因此,如果您要克隆存储库,请确保其URL以git@&lt; yourgitlabserver&gt;开始,假设您的键具有默认名称〜/。 ssh/id_rsa〜/.ssh/id_rsa.pub

http.sslVerify false is:

  1. A bad idea, you deactivate the SSL certificate
  2. only for HTTPS URL (https://...)

If you are adding ssh keys to the ssh-agent, it is because you want to use SSH URLs

So if you are trying to clone a repository, make sure its URL starts with git@<yourGitLabServer>, assuming that your keys have the default names ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文