转:shell时报Algorithm negotiation failed

在SSH Secure Shell上执行Connect to Remote Host时出现"Algorithm negotiation failed"警告


搜索一番后发现原因:SSH升级后,为了安全,默认不再采用原来的一些加密算法,需要手动添加。

先进入sshd的配置文件,

sudo vi /etc/ssh/sshd_config

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

然后重启就好了

————————————————

版权声明:本文为CSDN博主「weixin_41578691」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/weixin_41578691/article/details/82937109

你可能感兴趣的:(转:shell时报Algorithm negotiation failed)