异常问题: 下班之前升级了一下Git的版本,结果第二天过来拉取远程最新代码的时候就提示了下面的异常问题: Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer:
下班之前升级了一下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 https://gitee.com/ysgdaydayup/pingrixuexilianxi.git2、重新拉取成功
git pulll解决方案二、在.ssh文件中创建config文件并添加配置
Host * HostkeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsaReference
https://www.cnblogs.com/daibeisi/p/15662546.html