解决办法1:在用户配置目录下添加一个ssh配置文件
vim /root/.ssh/config 内容如下:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
解决方法2: 在ssh全局配置目录下添加一个ssh配置文件
vim /etc/ssh/ssh_config.d/ssh_xx.conf 内容如下:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
解决办法1:在用户配置目录下添加一个ssh配置文件
vim /root/.ssh/config 内容如下:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
解决方法2: 在ssh全局配置目录下添加一个ssh配置文件
vim /etc/ssh/ssh_config.d/ssh_xx.conf 内容如下:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
git clone时出现:"diffie-hellman-group1-sha1 "
原文:https://www.cnblogs.com/noxy/p/8550281.html