最近,我试图从我的 debian(jessie) 机器上克隆一个 git 仓库,我遇到了这个:
fatal: unable to access 'https://github.com/foo/bar/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
如 ubuntu folks 所述我使用了用 openssl 编译的 git,现在我得到:
fatal: unable to access 'https://github.com/foo/bar/': Unknown SSL protocol error in connection to github.com:443
最佳答案
客户端解决方案效果很好。
但是,当我们只需修复服务器上的问题并完成它时,要求每个人重新编译他们的基本 git 可执行文件并不总是可行的。
(注意:这仅在您拥有 git 服务器的管理员访问权限时才有效。)
编辑:
/etc/apache2/sites-enabled/config-file-whatever-it-is.conf
并添加ServerName my.sampleserver.com
服务器名称引用:
https://httpd.apache.org/docs/current/vhosts/name-based.html
特别感谢解决方案:
https://www.progclub.org/blog/2014/09/03/gnutls_handshake-failed-using-git/
关于混帐克隆 : fatal: gnutls_handshake() failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20368447/