报错详情
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