Windows使用git的clone/pull时出现错误

错误提示:

unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1

可以在用户目录的\.ssh的config文件下,添加内容如下:

Host *.*.*.* (IP地址)
KexAlgorithms +diffie-hellman-group1-sha1

posted @ 2020-05-12 14:04  skychmz  阅读(343)  评论(0编辑  收藏  举报