使用git拉取代碼的時候報這種錯誤
Unable to negotiate with 59.110.70.248 port 22: no matching key exchange method found.
Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解決辦法
在.ssh文件夾裏新建一個config文件
如圖:
config裏面填寫的配置內容是:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
如圖,這樣就解決了配置的問題
在拉取代碼就ok了