logo头像
Snippet 博客主题

navicat通过SSH连接云主机

环境:

云主机配置(购买的vultr):
Ubuntu 16.10 (GNU/Linux 4.8.0-30-generic x86_64)

问题描述:

用navicat for mysql通过SSH连接云主机时,出现如下问题:

问题1:SSH Tunnel:Server does not support diffie-hellman-group1-sha1

问题2:SSH Tunel:The negotiation of encryption algorthm is failed

解决方法:

打开文件sshd_config:

1
vi /etc/ssh/sshd_config

在文件最后添加:

1
2
3
KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,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

效果:

生成密钥︰

1
ssh-keygen -A

重启ssh服务:

1
service ssh restart

参考文档:

Не удается создать ssh tunnel

The negotiation of encryption algorithm is failed

上一篇