当您在使用SecureCRT连接Debian系统时遇到“Key exchange failed”错误,可以尝试以下步骤来解决问题:
/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
sudo systemctl stop firewalld
通过以上步骤,您应该能够解决SecureCRT连接Debian系统时遇到的“Key exchange failed”错误。如果问题仍然存在,请检查服务器的日志文件 /var/log/auth.log
以获取更多详细的错误信息,并根据日志提示进行进一步的排查。