1. 程式人生 > >git clone時出現:"diffie-hellman-group1-sha1 "

git clone時出現:"diffie-hellman-group1-sha1 "

解決方法 Go ssh配置文件 algorithm 出現 git clone log diff roo

解決辦法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 "