navicat用ssh跳转登录mysql连接时报:

 

80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1 for keyexchange

是由于ssh 配置缺少KexAlgorithms与Ciphers导致。

 

解决办法是进入/etc/ssh/sshd_config在最下面 加入下面配置:

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

 

执行下面代码

ssh-keygen -A

 

重启SSH

sudo service ssh restart

相关文章:

  • 2021-11-19
  • 2021-11-19
  • 2022-12-23
  • 2021-12-07
  • 2021-04-10
  • 2021-08-15
  • 2021-11-19
  • 2021-11-18
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2021-08-02
  • 2021-12-07
  • 2021-09-14
  • 2021-09-23
相关资源
相似解决方案