Git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching cipher found. Their...

sudo vim /etc/ssh/ssh_config
把以下代码放到指定位置,

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
也就是Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc下面

image.png

升级12.2之后新问题
Unable to negotiate with 10.211.101.102 port 29419: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1


image.png

在文件最后加上
// KexAlgorithms +diffie-hellman-group1-sha1
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

你可能感兴趣的:(Git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching cipher found. Their...)