1. 程式人生 > >navicat 連結阿里雲伺服器資料庫報80070007 的錯誤

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,[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

 

執行下面程式碼

ssh-keygen -A

 

重啟SSH

sudo service ssh restart