使navicat可以通过SSH连接MySQL数据库

1.编辑/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

2.使用命令ssh-keygen -A,记下生成的key

3.在navicat中使用相应的SSH选项,并在密码短语中填写上述key,再按常规

猜你喜欢

转载自www.cnblogs.com/LinuxHunter/p/9270678.html