Git Clone 时遇到 ‘diffie-hellman-group14-sha1’错误

 在新公司使用Git克隆项目时遇到 

Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Could not read from remote repository. 错误时

使用 如下命令即可

git config --global core.sshcommand "ssh -o KexAlgorithms=+diffie-hellman-group1-sha1"

此类问题上面错误需要什么 诸如 diffie-hellman-group1-sha1 我们动态的去命令中修改就好


版权声明:本文为weixin_43475452原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。