navicat使用ssh登录mysql报错:expected key exchange group packet from server

一、navicat ssh连接方式

由于公司使用的是阿里云的RDS,需要通过内网连接数据库(不直接提供公网访问),此时可以使用navicat的ssh方式,通过一台跳板机连接内网的RDS

image

image

二、连接报错及解决方式

报错:SSH: expected key exchange group packet from server

image

解决方式:

1、升级navicat

2、修改sshd的配置

[root@Manager ~]#vim /etc/ssh/sshd_config  #编辑sshd配置文件,在最后添加
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

参考文档:

https://blog.csdn.net/enweitech/article/details/80677374

http://www.bubuko.com/infodetail-2993078.html

原文地址:https://www.cnblogs.com/hujinzhong/p/11801921.html