GIT clone异常Unable to negotiate with
- 问题现象
- 修复问题
问题现象
Unable to negotiate with 17.0.01 port 29418: no matching key exchange method
found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
修复问题
在ssh目录创建config文件
vi ~/.ssh/config
文件中添加
Host *
KexAlgorithms +diffie-hellman-group1-sha1
HostkeyAlgorithms +ssh-dss,ssh-rsa
PubkeyAcceptedKeyTypes +ssh-dss,ssh-rsa