windows - 在 Windows 上的 Git Bash (msysgit) 中更改 OpenSSH 和 OpenSSL 版本

标签 windows cygwin openssh git-bash

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 routines

Use 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/

相关文章:

git-bash - Pageant 不加载使用 GitBash 生成的 SSH-2 key

php - 可通过 TCP 访问守护进程以保持 SSH session 打开、创建新 session 和发送命令

jenkins - 从 Jenkins 运行时出现以下错误,同时 ssh : Permission denied (publickey, 密码,键盘交互)

windows - 我在哪里可以获得 Windows 10 检查版本?

c++ - CLion 不识别 Cygwin 编译器

linux - VBA SendKeys 到特定窗口

gdb - 在使用 mingw-w64 编译的 cygwin windows 中调试 32 位二进制文​​件

c++ - 在测试工具下获取当前可执行目录失败

windows - 调试 "service failed to start"Windows Installer 错误

eclipse - java.io.IOException : Invalid argument at java. io.WinNTFileSystem.canonicalize0