Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过ssh使用workbench连接到digitalocean上的mysql_Mysql_Mysql Workbench_Laravel 5.3_Digital Ocean - Fatal编程技术网

无法通过ssh使用workbench连接到digitalocean上的mysql

无法通过ssh使用workbench连接到digitalocean上的mysql,mysql,mysql-workbench,laravel-5.3,digital-ocean,Mysql,Mysql Workbench,Laravel 5.3,Digital Ocean,我已经用laravel应用程序和数据库设置了我的水滴。在putty ssh上创建我的db。现在,当我试图连接到我的mysql数据库(如图所示)时,我遇到了一个错误 错误:身份验证错误,隧道管理器中捕获到未处理的异常,请参阅日志了解详细信息 请注意,我的凭据是正确的,因为我使用putty进行连接。有关于如何查看我的数据库的帮助吗?这样解决了这个问题 这是一个ssh级别的问题。digital ocean server不支持错误中提到的Kex算法。可以执行以下操作来修复此问题 需要在digital

我已经用laravel应用程序和数据库设置了我的水滴。在putty ssh上创建我的db。现在,当我试图连接到我的mysql数据库(如图所示)时,我遇到了一个错误

错误:身份验证错误,隧道管理器中捕获到未处理的异常,请参阅日志了解详细信息


请注意,我的凭据是正确的,因为我使用putty进行连接。有关于如何查看我的数据库的帮助吗?

这样解决了这个问题

这是一个ssh级别的问题。digital ocean server不支持错误中提到的Kex算法。可以执行以下操作来修复此问题

需要在digital ocean服务器本身上执行以下步骤

1-将以下行添加到digital ocean server上的此文件中

$sudo vim/etc/ssh/sshd\u config

2-在服务器上重新启动ssh服务

$sudo服务ssh重启


现在再次尝试连接mysql workbench,您应该会看到错误消失了。如果没有成功,请检查日志中是否有更多错误,但这对我来说是个好办法。

在High Sierra上使用workbench 6.17遇到了同样的问题。我刚刚下载了workbench 8.0.12的更新版本,它立即解决了这个问题。您可以在这里找到旧版本的workbench:

也适用于针对AWS EC2服务器的mac机器。谢谢。还可以从OSX10.11.6(ElCapitan)连接到Ubuntu 16.04上的MySQL 5.7。请注意,我运行OS X Sierra的Mac笔记本电脑没有问题。非常感谢!
Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1