macbook远程连接报错no matching cipher found

 

 

在.ssh/目录下添加config文件

Host xxx.xxx.xxx.xxx
Ciphers 3des-cbc
KexAlgorithms +diffie-hellman-group1-sha1
user xxx
Host xxx.xxx.xxx.xxx
Port 50022

 

再次连接即可

 

 

参考:https://unix.stackexchange.com/questions/402746/ssh-unable-to-negotiate-no-matching-key-exchange-method-found

 

转载于:https://www.cnblogs.com/tozh/p/10388023.html