no matching key exchange method found. Their of offer: diffie-hellman-group1-sha1.....

问题出现的原因是升级openssh到8.2
升级完成后连接CRT出现

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

经过各种测试 发现密钥可以登 ,修改win10的某个配置文件也没问题
我就不一一说了,搜索报错网上能查到

后来找到了https://www.cnblogs.com/shenjianyu/p/6407042.html
按照最下面的方法,解决掉了问题

在/etc/ssh/sshd_conf文件中添加
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

你可能感兴趣的:(工作总结)