git 的ssh 链接失败;
Unable to negotiate with 192.168.xx port 22: no matching host key type found. Their offer: ssh-rsa
最简单的解决方案
步骤1
重新尝试 SSH 连接,将以下内容添加到命令行中:
-oHostKeyAlgorithms=+ssh-rsa
ssh -oHostKeyAlgorithms=+ssh-rsa 用户名@ip地址
永久解决办法:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
重启:
重新链接ssh即可。