当使用SecureCRT连接Linux系统时,如果遇到连接失败的问题,可以尝试以下几种解决方法:
Key exchange failed. No compatible key exchange method
或 No compatible hostkey
/etc/ssh/sshd_config
文件。HostKeyAlgorithms=+ssh-rsa,ssh-dss
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
sudo firewall-cmd --permanent --add-port=22/tcp
sudo firewall-cmd --reload
sudo systemctl status sshd
sudo systemctl start sshd
通过以上步骤,通常可以解决SecureCRT连接Linux系统时遇到的Key exchange failed. No compatible key exchange method
或No compatible hostkey
错误。如果问题仍然存在,建议检查服务器和客户端的日志文件,以获取更多详细的错误信息。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
相关推荐:linux securecrt兼容性怎样