git 升级到 2.33版本后,连接远程仓库失败

前言

重装git最新版本后,idea连接远程仓库失败。

 

解决步骤

.ssh目录下创建文件config

文件内容:

Host *
     ServerAliveInterval 10
     HostKeyAlgorithms +ssh-rsa
     PubkeyAcceptedKeyTypes +ssh-rsa

如图:

 

 

连接成功。

 

感谢

Solution to openssh-8.8-p1 update: no matching host key type found. Their offer: ssh-rsa :: /dev/ttyS3 — 回首向来萧瑟处 也无荒野也无灯

 

posted @ 2021-10-23 21:09  习惯沉淀  阅读(540)  评论(0编辑  收藏  举报