打赏

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

相关链接

https://blog.csdn.net/u013214821/article/details/122804133?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2~default~BlogCommendFromBaidu~default-1.pc_relevant_without_ctrlist&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2~default~BlogCommendFromBaidu~default-1.pc_relevant_without_ctrlist&utm_relevant_index=1

https://www.cnblogs.com/daibeisi/p/15662546.html

posted @ 2022-07-01 18:31  苍山落暮  阅读(150)  评论(0编辑  收藏  举报