fatal: the remote end hung up unexpectedly (curl 56 OpenSSL SSL_read:SSL_ERROR_sysCALL)
来源:互联网 发布:js math.pow 编辑:程序博客网 时间:2024/05/21 17:59
出现类似上述错误,网上找到的大量解决方案如下:
git config http.postBuffer 524288000
在git bash上运行上述代码就可以,目的是增加缓存空间到500M.
其实两种错误最后都是失败,但提示是不同的:
Counting objects: 56, done.Delta compression using up to 2 threads.Compressing objects: 100% (29/29), done.Writing objects: 100% (29/29), 67.82 KiB | 0 bytes/s, done.Total 29 (delta 20), reused 0 (delta 0)
error: RPC failed; result=55, HTTP code = 200
fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date
如果是上面的错误提示,就可以使用上述方法解决(原则上是这样,也有可能有其他错误,你懂的),但另一种情况是,红字的部分被类似如下的错误提示代替:
curl 56 OpenSSL SSL_read:SSL_ERROR_sysCALL
这就是:
SSL错误
因为服务器的SSL证书没有经过第三方机构的签署,所以才报错。解决方案如下:
第一步,克隆远程仓库时,用env命令设置GIT_SSL_NO_VERIFY环境变量为”ture”,并同时调用正常的git clone命令。完整的命令如下:
env GIT_SSL_NO_VERIFY=true git clone https://<host_name/git/project.git
第二步,在克隆完毕的仓库中将http.sslVerify设置为”false”。完整的命令如下:
git config http.sslVerify "false"
点评:以上方法应该是Git处理可信任的SSL临时证书很好的方法,第一步使用env命令保证了忽略证书错误是单次行为,不会成为默认的设置。第二次,则把忽略证书错误的设置限定在特定的仓库,避免扩大该设置的适用范围而引起的潜在安全风险。
PS:我的目的是想传一些大文件到github上,要是用大文件存储也就是LFS(large file storage),我一直以为是大文件的问题或者是网络的问题(因为可能需要翻墙),想不到最后是证书认证的问题,查找问题还是要一丝不苟啊!
参考资料:http://schnell18.iteye.com/blog/2031397
阅读全文
0 0
- fatal: the remote end hung up unexpectedly (curl 56 OpenSSL SSL_read:SSL_ERROR_sysCALL)
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- git push错误;fatal: The remote end hung up unexpectedly
- git push错误;fatal: The remote end hung up unexpectedly
- git fatal: the remote end hung up unexpectedly
- Git fatal: The remote end hung up unexpectedly
- Git: fatal: The remote end hung up unexpectedly 解决方法
- Git异常fatal:The remote end hung up unexpectedly
- iOS - 解决fatal: The remote end hung up unexpectedly
- git fatal: The remote end hung up unexpectedly 错误
- Git, fatal: The remote end hung up unexpectedly
- css---flex布局中,如何响应式 得水平垂直居中?flex子元素左右 上下居中
- 面向对象相关问题
- Duplicate entry '??…???' for key 'cname' Query:
- 关于c++空指针0/NULL/nullptr三者的演变
- 前端面试之---javascript原型
- fatal: the remote end hung up unexpectedly (curl 56 OpenSSL SSL_read:SSL_ERROR_sysCALL)
- 大数据协作框架之Oozie
- python安装与初步使用教程
- HorizontalTabhost
- 关于将微博上视频保存在电脑本地的方法汇总
- BP神经网络的Python简单实现
- CyclicBarrier
- ④设计模式之多例模式
- logstash-input-jdbc 同步原理及相关问题解读