git pull报错:Unable to negotiate with port: no matching host key type found. Their offer: ssh-rsa

Unable to negotiate with xx.xx.xx.xxx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: 无法读取远程仓库。

解决方法(在ssh目录新建config文件)

sudo vim ~/.ssh/config

添加:

git pull报错:Unable to negotiate with port: no matching host key type found. Their offer: ssh-rsa_第1张图片

Host *
    KexAlgorithms +diffie-hellman-group1-sha1
    HostkeyAlgorithms +ssh-dss,ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-dss,ssh-rsa

你可能感兴趣的:(git,git,ssh)