在使用idea进行clone代码时报如下错:Unable to negotiate with ***.**.**.** port *****: no matching host key type found. Their offer: ssh-rsa,ssh-dss Could not read from remote repository.  Please make sure you have the correct access rights and the repository exit。

 

 原因是:电脑静默升级了 openssh 8.8-p1 版, 你会发现连接某些之前连接得好好的服务器突然无法连接。

参考此篇文档解决的:https://ttys3.dev/post/openssh-8-8-p1-no-matching-host-key-type-found-their-offer-ssh-rsa/

posted on 2021-11-10 11:19  喵小超  阅读(675)  评论(0编辑  收藏  举报