Navicat---使用SSH远程连接到MySql,报错80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1...

尝试使用Navicat远程连接到我在阿里云服务器上的MySql,通过SSH

Navicat---使用SSH远程连接到MySql,报错80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1..._第1张图片

 

但是报错: 80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1 forkeyexchange

 

解决方案:【亲测有效】

1.打开

sudo vim /etc/ssh/sshd_config

2.在最后添加

KexAlgorithms diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr

3. :wq!保存

4.执行 重新生成所有键:

ssh-keygen -A

5.重启ssh服务

sudo service ssh restart

  

再次连接,成功!

 Navicat---使用SSH远程连接到MySql,报错80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1..._第2张图片

 

转载于:https://www.cnblogs.com/super-zhangkun/p/10217166.html

你可能感兴趣的:(Navicat---使用SSH远程连接到MySql,报错80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1...)