在navicat使用ssh通道连接服务器端数据库时,会出现
ssh tunnel:the negotiation of encryption is failed
或者
ssh tunnel:server does not support diffie-hellman-group1-sha1 forkeyexchange
的问题
这是因为服务器关于ssh的加密设置没有和navicat协调好
此时,需要修改服务器配置文件,方法如下
- 命令行运行
vi /etc/ssh/sshd_config
- 在文件末尾加入如下代码
KexAlgorithms diffie-hellman-group1-sha1
Ciphers 3des-cbc
- 保存文件(vi用Esc + :wq!)
- 命令行运行
ssh-keygen -A
- 命令行运行 重启ssh
service sshd restart