解决方法:

vim /etc/ssh/sshd_config
shift+g 添加
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

;重启
service sshd restart

 

参考:在Ubuntu16.04下安装mysql

sudo apt-get install mysql-server
sudo apt install mysql-client
sudo apt install