Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解決的兩種方式)
異常問題:
下班之前升級了一下Git的版本,結果第二天過來拉取遠程最新程式碼的時候就提示了下面的異常問題:
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa Git failed with a fatal error. Git failed with a fatal error. Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
問題分析:
1、修改本地程式碼關聯的遠程地址
git remote set-url origin //gitee.com/ysgdaydayup/pingrixuexilianxi.git
2、重新拉取成功
git pulll
解決方案二、在.ssh文件中創建config文件並添加配置
Host * HostkeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa
Reference
//www.cnblogs.com/daibeisi/p/15662546.html