Navicat使用ssh隧道连接数据库问题

mysql 22-05-05 15:29 1030  

### 一、现象 在跳板机上连接MySQL服务器可以正常连接,在客户机上使用Navicat通过ssh隧道连接,一直处于连接状态,也未出现报错信息。 ### 二、环境 1. 客户机 - Windows 10 - Navicat Premium 11.0.8 2. 跳板机 - Centos 7 - OpenSSH_7.4p1 3. MySQL服务器 - ubuntu0.18.04.1 - 5.7.37-0ubuntu0.18.04.1 ### 三、解决办法 ``` # 跳板机服务器,使用 SSH 通道 需要在 sshd_config 中加入以下配置 [root@mysql ~]# vim /etc/ssh/sshd_config KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1 # 重启 sshd [root@mysql ~]# systemctl restart sshd ```

22-09-20 16:14

阿斯顿

22-05-17 18:21

我师祖

22-05-17 08:59

test