【发布时间】:2016-05-12 22:57:28
【问题描述】:
我正在尝试使用 MINGW64 在 Windows 上克隆一个 repo,但出现此错误。
$ git clone ssh://user@server/myproject && scp -p -P XXXXX user@server:hooks/commit-msg myproject/.git/hooks/
Cloning into 'myproject'...
Unable to negotiate with XXX.XXX.XX.XXX: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
*已经检查了文档http://www.openssh.com/legacy.html 和帖子http://www.openssh.com/legacy.html 中的解决方案,仍然得到错误。
已经添加到我的配置文件中 托管 somehost.example.org KexAlgorithms +diffie-hellman-group1-sha1
有什么帮助吗?
【问题讨论】:
-
您可以尝试搜索您的错误消息。这似乎直接导致了 openssh.com 网站上的文档。
-
我已经检查了文档并按照步骤操作,但仍然得到相同的错误。 @larsks
-
然后更新您的问题以向您展示您尝试过的内容(具体的命令行),否则我们将继续告诉您同样的事情。
-
检查我的编辑。 @larsks
-
您的更新并未显示您正在使用来自openssh.com/legacy.html 的解决方案。