简介

        本文介绍SecureCrt连接Linux的报错问题:Key exchange failed.No compatible key-exchange method

问题复现

我在使用SecureCrt连接Linux时,报了如下错误:

Key exchange failed.
No compatible key-exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

原因分析

原因是软件的现有配置没有与服务器相匹配的密钥交换方式。

解决方案

选项=> 编辑默认会话=> 连接=> SSH2=> 密钥交换=> 选中所有加密方式

如下图所示:

SecureCRT--解决Key exchange failed.No compatible key-exchange method_解决方案

SecureCRT--解决Key exchange failed.No compatible key-exchange method_Linux_02