git拉取代碼碰到的問題

使用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了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章