Navicat 连接SSH方式连接mysql报错 ssh:expected key exchange group packet


只需要在sshd配置文件中加入以下行即可:

  KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

  #KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1  此行支持旧的加密算法

重启sshd

原因大概就是

use libssh2, and libssh2 only support diffie-hellman key exchange methods

而且升级libssh2也未能解决,应该是个bug。

【原因导致】

服务器的sshd服务升级了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM