【Linux常见问题】SecureCRT 终端链接密钥交换失败错误

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
相关文章
相关标签/搜索