报错详情

Unable to negotiate with xx.xx.xx.xx port 29318: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决办法:

在Git的安装目录下 Git > etc > ssh 文件夹下找到 ssh_config 文件 。
在文件末尾添加一下代码。

# 注意这里的 xxx.com 是没有 https:// 的
# 如 https://github.com/, 填写 github.com 即可(最后的斜杆也不能要)。
Host xxx.com
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

参考地址:
https://www.jianshu.com/p/a17c1f904ffd

posted on 2022-05-19 11:10  步孤天  阅读(674)  评论(0编辑  收藏  举报