跳到主要内容

git拉取代码报错

git拉取代码报错如下

$ git clone ssh://git@xxx.com/xxx/xxx.git
Cloning into 'xxx'...
Unable to negotiate with 10.10.10.10 port 6666: 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.

解决方法

参考 stackoverflow

$ cat ~/.ssh/config
Host xxx.com
PubkeyAcceptedAlgorithms +ssh-rsa
HostKeyAlgorithms +ssh-rsa
Right Bottom Gif
Right Top GIF