这是一个创建于 2683 天前的主题,其中的信息可能已经有所发展或是发生改变。
在自己的 mac 上把 git 已经配置好, id_rsa.pub 中的内容也复制到了服务器上,但是克隆代码到本地总是报这个错误:unable to negotiate with xx.xx.xx.xx:no matching key exchange method found.their offer:diffie-hellman-group1-sha1
fatal:could not read from remote repository.
please make sure you have the correct access rights and rhe repository exists.
公司的项目,以前在自己的 pc 上弄过,没出现过这个情况,倒腾了好几天了,希望 v2 上的大神能帮忙解决下,多谢了
5 条回复 • 2017-03-03 09:41:22 +08:00
![CrazyRabbit](https://cdn.v2ex.com/gravatar/eb1573f87c5b4b50c4ece96307591d94?s=48&d=retro) |
|
1
CrazyRabbit 2017-03-02 21:40:18 +08:00 via Android
自己顶
|
![Dvel](https://cdn.v2ex.com/avatar/0f79/4992/161421_normal.png?m=1693486358) |
|
2
Dvel 2017-03-02 21:51:16 +08:00
|
![dreamaero](https://cdn.v2ex.com/avatar/5cfd/8abf/155682_normal.png?m=1718164154) |
|
3
dreamaero 2017-03-03 00:58:53 +08:00 via iPhone
重新生成一个密钥试试吧,公私钥可能不对应了。
|
![zhanglintc](https://cdn.v2ex.com/gravatar/f754d5a816bba96f115a4003ea27447d?s=48&d=retro) |
|
5
zhanglintc 2017-03-03 09:41:22 +08:00
我也觉的可以试试再重新生成一次密钥. 如果还是不行再讨论.
|