CrazyRabbit
V2EX  ›  问与答

mac 从 git 上拉代码出现了难以解决的问题

  •  
  •   CrazyRabbit · Mar 2, 2017 · 3041 views
    This topic created in 3553 days ago, the information mentioned may be changed or developed.
    在自己的 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 replies  •  2017-03-03 09:41:22 +08:00
    CrazyRabbit
    CrazyRabbit
    OP
    Mar 2, 2017 via Android
    1
    自己顶
    dreamaero
    dreamaero
    Mar 3, 2017 via iPhone
    3
    重新生成一个密钥试试吧,公私钥可能不对应了。
    DravenJohnson
    DravenJohnson
    Mar 3, 2017
    4
    Gitlab?
    zhanglintc
    zhanglintc
    Mar 3, 2017
    5
    我也觉的可以试试再重新生成一次密钥. 如果还是不行再讨论.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4906 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 03:25 · PVG 11:25 · LAX 19:25 · JFK 22:25
    ♥ Do have faith in what you're doing.