windows下git clone代碼躬络,遇到報(bào)錯:
...
no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
解決辦法:
在~/.ssh/目錄下(C:\Users\用戶名.ssh\)新建文件 config
寫入如下內(nèi)容:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
保存后
重新git clone即可