securecrt连接服务器报错 Key exchange failed 怎么办

新买了一台阿里云机,用securecrt去连接,如下报错

这个错误表明你的 SSH 客户端与服务器之间无法就密钥交换方法和主机密钥算法达成一致,导致连接失败。这通常是由于客户端和服务器支持的加密算法集不匹配造成的。

解决方式

编辑服务器的/etc/ssh/sshd_config,添加

bash 复制代码
HostKeyAlgorithms ssh-dss,ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

然后重启ssh/sshd解决

相关推荐
研华科技Advantech4 小时前
案例 | 从离线巡检到在线看护:研华PHM解决方案赋能石油钻井平台智能运维
运维·人工智能·边缘计算
難釋懷4 小时前
Nginx主动健康检查
运维·nginx
ITyunwei09875 小时前
内存溢出报错,实战处理记录
运维·服务器·企业微信
Elastic 中国社区官方博客5 小时前
你的 AI agent 不需要你的 API 密钥:使用 OAuth 2.1 对 Elasticsearch MCP 服务器进行身份验证
大数据·运维·人工智能·elasticsearch·搜索引擎·全文检索
FreeTinker5 小时前
AP AC组网中的远程运维挑战及内网穿透技术应用分析
运维
谷哥的小弟6 小时前
腾讯云服务器安装Redis Stack图文教程
服务器·redis·腾讯云·redis stack
发量惊人的中年网工6 小时前
中小企业网络管理进阶:从设备堆叠到统一管理
服务器·网络·安全·网络安全·php·制造
Huangjin007_6 小时前
【Linux 系统篇(十五)】进程 (三) :进程状态深度详解
linux·运维
RisunJan7 小时前
Linux命令-talk(终端实时对话)
linux·运维·服务器
整点bug7 小时前
AI 运维该不该自动执行命令?
运维·ssh·openai