ssh-clone问题记录
git clone no matching host key type found问题记录
报错信息
Unable to negotiate with 主机地址 port 端口号: 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.
解决办法
修改C:\Users\Nova004992\AppData\Local\Programs\Git\etc\ssh\ssh_config配置文件
Host git.xxx.net
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
# Added by git-extra Host后面替换为自己的git域名
Host git.xxx.net
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
其他解决办法
到当前用户目录下的.ssh文件中创建config文件,添加内容如下:
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
相关链接
【励志篇】:
古之成大事掌大学问者,不惟有超世之才,亦必有坚韧不拔之志。