SecureCRT 終端軟件鏈接linux操做系統,出現以下錯誤:linux
英文描述:Key exchange failed. No compatible key exchange method. The server supports these methods: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256服務器
中文描述:密鑰交換失敗。沒有兼容的密鑰交換方法。服務器支持如下方法:ecdh-sha2-nistp25六、ecdh-sha2-nistp38四、ecdh-sha2-nistp52一、diffie-hellman-group-exchange-sha256ssh
解決方法:spa
//使用root用戶,變動ssh客戶端配置 cd /etc/ssh vi ssh_config //取消以下兩行註釋 Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
//使用root用戶,變動ssh服務端配置. vi sshd_config
複製上述兩行到sshd_config中。
若是有其它密鑰交換語句,則註釋掉。
//重啓系統reboot