Git 克隆 : Unknown SSL protocol error in connection to github. com:443

标签 git github

我正在尝试在我的办公系统中克隆一个 GitHub 项目。

set HTTPS_PROXY=http://<UN>:<PWD>@<PROXYSERVER>:<PORT>
set HTTP_PROXY=http://<UN>:<PWD>@<PROXYSERVER>:<PORT>

我已经设置了 HTTPS 并且 HTTP 代理也将 sslVerify 设置为 false

[https]
    sslVerify = false
[http]
    sslVerify = false

仍然,我收到“连接到 github.com:443 时出现未知 SSL 协议(protocol)错误”。

有人可以告诉我我需要做什么吗?

最佳答案

确保使用最新的 Git (2.12.2) 检查问题是否仍然存在。

如果是这样,请查看我在“Unknown SSL protocol error in connection”中提到的各种设置以进行调试:

# Windows
set GIT_CURL_VERBOSE=1
set GIT_TRACE_PACKET=2

# Unix
export GIT_CURL_VERBOSE=1
export GIT_TRACE_PACKET=2

2018 年 2 月更新:issue 587 之后(禁用 TLSv1.0 和禁用密码),这终于到位:不再使用 TLSv1.0。
请参阅“Discontinue support for weak cryptographic standards”,2018 年更新为“Weak cryptographic standards removal notice”。

On February 8, 2018 we’ll start disabling the following:

  • TLSv1/TLSv1.1: This applies to all HTTPS connections, including web, API, and git connections to https://github.com and https://api.github.com.
  • diffie-hellman-group1-sha1: This applies to all SSH connections to github.com
  • diffie-hellman-group14-sha1: This applies to all SSH connections to github.com

所以请确保您:

  • Git Credential Manager 高于 1.14.0
  • RedHat 上的 Git(对于 RedHart)在 7.2 或更高版本中
  • JDK 8以上。

关于Git 克隆 : Unknown SSL protocol error in connection to github. com:443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43334847/

相关文章:

Git clone http 带密码

Git 错误 : <filename> is far too short to be a packfile

git pull origin master,不 pull 检查是否有冲突

git - 在 GitHub 上执行 pull 请求时避免不需要的 merge 提交和其他提交

git - 孤儿分支的 pull 请求

github - 如何在 GitHub 上的 readme.md 中获取彩色关键字标签?

Git:如何重写远程历史记录?

git - 远程分支后面的本地分支(pull、rebase、fetch、merge)

github - 如何使用标签在github问题跟踪器上过滤问题?

github - 在允许合并/关闭 PR 之前,如何在 github Pull 请求中要求链接问题