80070007:SSH Tunnel:Server does not support diffie-hellman-group1-sha1 for keyexchange 问题解决

一、问题描述

今天在通过ssh隧道连接数据库的时候出现了如下报错:

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

截图如下:

80070007:SSH Tunnel:Server does not support diffie-hellman-group1-sha1 for keyexchange 问题解决_第1张图片

 二、解决方法

1、在 /etc/ssh/sshd_config最下面加入下面配置

KexAlgorithms diffie-hellman-group1-sha1,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr

 

2、 执行ssh-keygen命令

ssh-keygen -A

3、重启ssh

service sshd restart

 

你可能感兴趣的:(点点滴滴故障处理,navicat,ssh)