致命:无法访问“https://github.com/gabelerner/canvg.git/”:同行报告不兼容或不受支持的协议版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49128953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
fatal: unable to access 'https://github.com/gabelerner/canvg.git/': Peer reports incompatible or unsupported protocol version
提问by Z.T
I am facing this issue in jenkins when i run bower install --allow-root. The build fails displaying the following error: Failed to execute "git ls-remote --tags --heads https://github.com/gabelerner/canvg.git
当我运行 bower install --allow-root 时,我在 jenkins 中遇到了这个问题。构建失败,显示以下错误: 无法执行“git ls-remote --tags --heads https://github.com/gabelerner/canvg.git
final build failure error displays as follows:
最终构建失败错误显示如下:
fatal: unable to access 'https://github.com/gabelerner/canvg.git/': Peer reports incompatible or unsupported protocol version
致命:无法访问“ https://github.com/gabelerner/canvg.git/”:同行报告不兼容或不受支持的协议版本
It shows the same error with different GIT file paths.
它显示了不同 GIT 文件路径的相同错误。
Previous error was : Error fetching remote repo 'origin'
以前的错误是:获取远程仓库“来源”时出错
which we solved changing the SSH key.
我们解决了更改 SSH 密钥的问题。
If we remove bower install command from the build, the build is successful.
如果我们从构建中删除 bower install 命令,则构建成功。
Any help would be appreciated.
任何帮助,将不胜感激。
回答by Jeffrey Levy
This may be the reason to your problem: Discontinue support for weak cryptographic standards
这可能是您的问题的原因: 停止支持弱加密标准
....As a result, GitHub is announcing the immediate deprecation, and eventual disablement, of our use of the following cryptographic standards:
TLSv1/TLSv1.1 - This applies to all HTTPS connections, including web, API, and git connections to https://github.comand 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. All of the above will be disabled on February 1, 2018.
....因此,GitHub 宣布立即弃用并最终禁用我们对以下加密标准的使用:
TLSv1/TLSv1.1 - 这适用于所有 HTTPS 连接,包括 web、API 和到https://github.com和 https://api.github.com 的git 连接。diffie-hellman-group1-sha1 - 这适用于到 github.com 的所有 SSH 连接。diffie-hellman-group14-sha1 - 这适用于到 github.com 的所有 SSH 连接。以上所有内容将于 2018 年 2 月 1 日禁用。
so you need to upgrade to stronger ciphers. I see that this solution helped others github-unable-to-access-ssl-connect-error
所以你需要升级到更强的密码。我看到这个解决方案帮助了其他人 github-unable-to-access-ssl-connect-error
yum update -y nss curl libcurl
I hope this helps
我希望这有帮助
回答by Will Fils
fatal: unable to access 'https://github.com/john/git-Training.git/': Peer reports incompatible or unsupported protocol version.
致命:无法访问“ https://github.com/john/git-Training.git/”:同行报告不兼容或不受支持的协议版本。
I upgraded to the newest cipher, the fatal error was gone.
我升级到最新的密码,致命错误消失了。
[john@doe git-Training]$ sudo yum update -y nss curl libcurl