【问题标题】:Connect to Nitrous.IO MySQL server using MySQL workbench使用 MySQL 工作台连接到 Nitrous.IO MySQL 服务器
【发布时间】:2014-07-06 01:06:16
【问题描述】:

我正在尝试使用 Windows 机器上的 MySQL Workbench 连接到我的 Nitrous.IO MySQL 服务器实例(换句话说,没有端口转发)。这些是我采取的没有成功的步骤,也许有人可以指出任何错误/潜在问题?

  1. 使用 PuttyGen 添加了 SSH 密钥 (http://help.nitrous.io/ssh-windows/)。我尝试使用密码创建私钥,而没有密码则没有成功。
  2. 在 MySQL 工作台上设置连接。使用 Nitrous.IO 框信息面板中的 SSH 主机名作为 apse1.nitrousbox.com:10871,使用“action”作为用户名,没有密码。
  3. 使用 PuttyGen 创建的选定 PPK 文件
  4. 将 MySQL 主机名指定为 127.0.0.1、端口 3306 和用户 root,没有密码(在本地 Nitrous.IO 终端工作)

现在,当我测试我的连接时,我收到以下错误:

Could not connect the SSH Tunnel
Authentication error. Please check that your username and password are correct and try again.
Details (Original exception message):
Bad authentication type, the server is not accepting this type of authentication.
Allowed ones are:
['publickey']

现在我确定这是要使用的身份验证类型,因为我指定了私钥文件。此设置可能有什么问题?

【问题讨论】:

    标签: mysql ssh mysql-workbench nitrousio


    【解决方案1】:

    putty 密钥文件与 OpenSSH 不兼容,因此请尝试将 ppk 文件转换为 OpenSSH(IIRC 在 putty 包中有一个工具)。然后还要检查远程 SSH 服务器是否接受使用密钥文件进行身份验证,而不仅仅是通过用户名/密码。

    【讨论】:

    • 将私钥导出到 OpenSSH 对我有用。谢谢
    猜你喜欢
    • 1970-01-01
    • 2015-05-18
    • 2021-12-15
    • 1970-01-01
    • 1970-01-01
    • 2015-05-11
    • 2011-12-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多