1. 程式人生 > >使用ssh方式git clone遠端版本庫遇到的坑(一)

使用ssh方式git clone遠端版本庫遇到的坑(一)

在git clone ssh://….的時候報錯:

nable to negotiate with : no matching key exchange method found.
Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.

解決辦法:

我在~/.ssh/config檔案裡新增以下內容:
Host xxxx.yyyy.com
KexAlgorithms +diffie-hellman-group1-sha1
Port portNumber
User userName-yourDomain-com