赞
踩
git clone 代码后报错 :ssh-rsa,ssh-dss
$ git clone xxx.git Cloning into 'xxx'...
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.
找到git的安装路径,etc/ssh/ssh_config,右键通过记事本打开
在最下面加这三行
Host 路径
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
或者
Host *.路径
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
保存到桌面.txt,然后再去掉后缀,拖到ssh里面替换掉ssh_config就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。