问题描述
Key exchange Failed. No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256
No compatible MAC. The server supports these MACs: hmac-sha2-512,[email protected],hmac-sha2-256,[email protected]
分析就是没有找到交换米秘钥的算法,导致失败
问题解决
方法2、注释掉最新的交换密码改为老的秘钥交换(可能是不安全,但也没办法)
/etc/ssh/sshd_config
#Ciphers
#MACs
#KexAlgorithms
新增兼容性的秘钥交换
KexAlgorithms [email protected],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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。