ubuntu16.04解决通过ssh远程链接mysql失败问题

  1. 打开ssh配置文件

    sudo vim /etc/ssh/sshd_config
    
  2. 在文章最后加入:

    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

  3. ssh-keygen -A

  4. sudo service ssh restart

你可能感兴趣的:(ubuntu16.04解决通过ssh远程链接mysql失败问题)