当在Debian系统中使用SecureCRT进行SSH连接时,如果遇到“Key exchange failed”的错误,可以尝试以下几种解决方法:
/etc/ssh/sshd_config
文件进行编辑(使用 sudo vi /etc/ssh/sshd_config
命令)。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
sudo systemctl restart sshd.service
命令)。Options
-> Session Options
-> Terminal
-> SSH
-> Key Exchange
。Allow key exchange algorithms
,并尝试添加新的密钥交换算法,如 curve25519-sha256@libssh.org
。/var/log/auth.log
日志文件,以获取更多关于连接失败的信息。通过上述方法,通常可以解决SecureCRT在Debian系统中连接失败的问题。如果问题仍然存在,建议检查网络配置和防火墙设置,确保SSH端口(默认是22)是开放的,并且没有被阻止。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>