macOS升级mojave 10.14 ssh连接时no matching cipher found. Their offer: aes128-cbc 的解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/nellyp/article/details/83150460

解决no matching cipher found. Their offer: aes128-cbc

问题复现

今天有空升级了下macOS,新的Mojave很漂亮,不过每次升级系统都会带了一些想不到的问题,升级完之后刚要连接远程机开发就报错了。

# ssh [email protected]
Unable to negotiate with 127.0.0.1 port 4440: no matching cipher found. Their offer: aes128-cbc

原因是Terminal找不到支持的密钥交换方法,因为新版Openssh中认为SHA1这种hash散列算法过于薄弱,已经不再支持,所以我们需要手动去允许对于SHA1的支持,官方对于这个问题也收到了很多讨论,click here
编辑 /etc/ssh/ssh_config
找到算法列表那行
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
去掉注释,问题就解决了

猜你喜欢

转载自blog.csdn.net/nellyp/article/details/83150460