Git Bash 中的 OpenSSH 和 OpenSSL 版本真的很旧。在这篇文章中,当输入 ssh -V
时,版本是:
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
我的问题是,我们如何升级这些(安全、不破坏任何东西等)? This article有一个解决方案,但它只提到升级 OpenSSH,而不是 OpenSSL,尽管我相信您也可以找到要传输的 OpenSSL 文件。但是,它需要安装可能不需要的 Cygwin。虽然有一种方法可以下载 Cygwin 模块但不安装它们,但这似乎并没有添加一些 DLL,例如 cygcrypto.dll 和 cygwin1.dll。
即使这行得通,还有别的办法吗?您可以从 openssh.com/openssl.org 下载一些文件并更改几个配置文件吗?
最佳答案
注:最后Git for Windows release (Git 2.12.1,2017 年 3 月)现在使用更新的 OpenSSL 版本。
Windows 端口现在使用 OpenSSL 的 SHA-1 例程实现
参见 commit 2cfc70f (2017 年 2 月 9 日)Jeff Hostetler (jeffhostetler
) .
(由 Junio C Hamano -- gitster
-- 合并于 commit 033328a ,2017 年 3 月 13 日)
mingw
: use OpenSSL's SHA-1 routinesUse OpenSSL's SHA-1 routines rather than builtin block-sha1 routines.
This improves performance on SHA1 operations on Intel processors.OpenSSL 1.0.2 has made considerable performance improvements and support the Intel hardware acceleration features.
C:\tools\gits\latest\usr\bin>openssl version
OpenSSL 1.0.2k 26 Jan 2017
See:
是的,OpenSSH 也是最新的:
C:\tools\gits\latest\usr\bin>ssh -V
OpenSSH_7.3p1, OpenSSL 1.0.2k 26 Jan 2017
关于windows - 在 Windows 上的 Git Bash (msysgit) 中更改 OpenSSH 和 OpenSSL 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20873844/