Mac OS使用WindTerm提示kex error 解决方法

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]会话已断开连接,按回车重新连接。

image.png

解决办法
修改Mac SSH服务配置文件

解决办法

修改 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

不需要重启服务即可完整,重连服务器即可
修改完整后,成功连接
image.png

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

posted @ 2025-08-21 00:03  陈科科  阅读(125)  评论(0)    收藏  举报