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
添加:

Host *
KexAlgorithms +diffie-hellman-group1-sha1
HostkeyAlgorithms +ssh-dss,ssh-rsa
PubkeyAcceptedKeyTypes +ssh-dss,ssh-rsa
更多推荐

所有评论(0)