新配置的Git Bash客户端去克隆服务器的工程时出现如下错误:
Unable to negotiate with xxx port xxx:no matching key exchange method found.Their offer: diffie-hellman-group1-sha1
fatal:Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
解决方法:
新建~/.ssh/config 文件, 输入内容:
Host 192.168.8.163
KexAlgorithms +diffie-hellman-group1-sha1