在SSH Secure Shell上執(zhí)行Connect to Remote Host時出現(xiàn)"Algorithm negotiation failed"警告

搜索一番后發(fā)現(xiàn)原因: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,umac-64@openssh.com,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,curve25519-sha256@libssh.org
然后重啟就好了
————————————————
版權聲明:本文為CSDN博主「weixin_41578691」的原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權協(xié)議,轉(zhuǎn)載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/weixin_41578691/article/details/82937109