使用 Navicat for MySQL 通过跳板机登录 Mysql 时(使用 SSH 通道)
报错如下:

  • SSH : Expected key exchange group packet from Server
  • 一直处于正在连接状态,无响应

连接属性配置:
Navicat 使用 SSH 通道
Navicat 使用 SSH 通道

配置确认没有错误,实际上需要在跳板机上的 sshd_config 文件中加入一些配置,并重启 sshd 服务,即可成功

# 数据库服务器,授权 root@'172.16.1.%' 用户对于所有库下的所有表有所有权限,密码是 123 
[root@dbtest01 ~]# mysql -p
Enter password:
mysql> grant all on *.* to root@'172.16.1.%' identified by '123';


# 跳板机服务器,使用 SSH 通道 需要在 sshd_config 中加入以下配置
[root@dbtest02 ~]# 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@dbtest02 ~]# systemctl restart sshd

相关文章:

  • 2021-09-02
  • 2021-12-03
  • 2021-06-28
  • 2021-12-09
  • 2020-02-02
  • 2021-11-23
  • 2021-12-20
  • 2019-11-08
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2021-06-22
  • 2021-06-02
  • 2021-06-08
相关资源
相似解决方案