Mac OS使用WindTerm提示kex error : no match for method encryption client->server: server [aes128-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr], client [aes256-gcm@openssh.com]会话已断开连接,按回车重新连接。

1741359556932.png

操作系统版本如下

1741359584615.png

软件版本如下

1741359630728.png

解决办法


修改Mac SSH服务配置文件

#完整配置文件如下

cat /etc/ssh/crypto.conf
# Default algorithms favoring higher-performance FIPS algorithms
# in most cases.
#
# To configure these SSH algorithms, run the following command:
#
# sudo ln -fs crypto/apple.conf /etc/ssh/crypto.conf
#
#Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com
Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
KexAlgorithms ^ecdh-sha2-nistp256
MACs ^hmac-sha2-256-etm@openssh.com,hmac-sha2-256


> 需要使用➜ ~ sudo vim /etc/ssh/crypto.conf
>
> 不需要重启服务即可完整,重连服务器即可

修改完整后

1741359787028.png

错误描述地址:https://github.com/kingToolbox/WindTerm/issues/674