Navicat使用SSH遠程連接到MySql,報錯80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1 for keyexchange


嘗試使用Navicat遠程連接到我在阿里雲服務器上的MySql,通過SSH

 

但是報錯: 80070007: SSH Tunnel: Server does not support diffie-hellman-group1-sha1 forkeyexchange

 

解決方案:【親測有效】

1.打開

sudo vim /etc/ssh/sshd_config

2.在最后添加

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

3. :wq!保存

4.執行 重新生成所有鍵:

ssh-keygen -A

5.重啟ssh服務

sudo service ssh restart

  

再次連接,成功!

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM