原文网址:SecureCRT--解决Key exchange failed.No compatible key-exchange method_IT利刃出鞘的博客-CSDN博客

简介

        本文介绍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=> 密钥交换=> 选中所有加密方式

如下图所示:

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐