问题与克隆git存储库 [英] Issue with cloning git repository
问题描述
我尝试复制git存储库并收到错误消息
无法与< server>协商:no找到匹配的密钥交换方法。
他们的报价:diffie-hellman-group1-sha1
致命:无法从远程存储库读取。
我编辑了〜/ .ssh / config
并添加了
Host somehost.example.org
KexAlgorithms + diffie-hellman-group1-sha1
但我仍然遇到相同的错误。
其他解决方案是使用命令 ssh -oKexAlgorithms = + diffie-hellman-group1-sha1 user@127.0.0.1 -p 2222
但我得到连接拒绝与端口号22以及。
我正在使用windows计算机。
详细描述此处:
如果客户端和服务器无法就一组相互参数达成一致,则连接将失败。
OpenSSH(7.0及更高版本)将产生如下错误消息: >
无法与127.0.0.1协商:没有找到匹配的密钥交换方法
他们的报价:diffie-h ellman-group1-sha1
设置备用ssh密钥
ssh-keygen -t rsa -C< your comment>
现在在您的服务器帐户下添加公钥并重试。
I am trying to clone the git repository and i am getting error
Unable to negotiate with <server>: no matching key exchange method found.
Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
I edited ~/.ssh/config
and added
Host somehost.example.org
KexAlgorithms +diffie-hellman-group1-sha1"
but still I am getting same error.
Other solution is to use the command ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@127.0.0.1 -p 2222
but I am getting connection refused with port no 22 as well.
I am using windows machine.
Your problem is described in details here:
If the client and server are unable to agree on a mutual set of parameters then the connection will fail.
OpenSSH (7.0 and greater) will produce an error message like this:
Unable to negotiate with 127.0.0.1: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Setting alternate ssh keys
ssh-keygen -t rsa -C <your comment>
now add the public key under your server account and try again.
这篇关于问题与克隆git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!