當使用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
通過以上步驟,通??梢越鉀QSecureCRT連接Linux系統時遇到的Key exchange failed. No compatible key exchange method
或No compatible hostkey
錯誤。如果問題仍然存在,建議檢查服務器和客戶端的日志文件,以獲取更多詳細的錯誤信息。