千家信息网

navicat 链接数据库报80070007

发表于:2024-09-22 作者:千家信息网编辑
千家信息网最后更新 2024年09月22日,navicat用ssh跳转登录mysql连接时报:80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1 fo
千家信息网最后更新 2024年09月22日navicat 链接数据库报80070007

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

service ssh restart


0