[英]git clone: fatal: gnutls_handshake() failed
recently, trying to clone a git repo from my debian(jessie) box, i'm facing this: 最近,我试图从我的debian(jessie)盒子里克隆一个git repo,我面对的是:
fatal: unable to access 'https://github.com/foo/bar/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
as mentioned by ubuntu folks i used the git compiled with openssl, and now i get: 正如ubuntu人提到的,我使用了用openssl编译的git,现在我得到:
fatal: unable to access 'https://github.com/foo/bar/': Unknown SSL protocol error in connection to github.com:443
The client side solutions work great. 客户端解决方案运行良好。
However, it's not always practical to ask everyone to recompile their base git executable when we could just fix things on the server and be done with it. 但是,当我们可以在服务器上修复并完成它时,要求每个人重新编译他们的基本git可执行文件并不总是切实可行。
(NOTE: This only works if you have admin access to your git server.) (注意:这仅在您具有git服务器的管理员权限时才有效。)
Edit: 编辑:
/etc/apache2/sites-enabled/config-file-whatever-it-is.conf /etc/apache2/sites-enabled/config-file-whatever-it-is.conf
And add ServerName my.sampleserver.com 并添加ServerName my.sampleserver.com
ServerName reference: ServerName参考:
https://httpd.apache.org/docs/current/vhosts/name-based.html https://httpd.apache.org/docs/current/vhosts/name-based.html
Special thanks to for the solution: 特别感谢解决方案:
https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/ https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.