repo init 报错:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

在ubuntu 16.04 执行 repo init 时会发生no matching key exchange method found. Their offer: diffie-hellman-group1-sha1的错误。


在~/.ssh/config中添加:


Host *
    KexAlgorithms +diffie-hellman-group1-sha1


即可解决,在ubuntu 麒麟 16.04测试通过。


猜你喜欢

转载自blog.csdn.net/lgdlchshg/article/details/53946133
今日推荐