vagrant sequel pro SSH 隧道远程主机无法连接,密码错误

vagrant sequel pro SSH Tunnel remote host can't connect, bad password

我是 MySQL 和 Vagrant 的新手,我花了几个小时来尝试设置它们。我可以从命令行连接到 MySQL:

mysql --host=127.0.0.1 --user=root --password=[my_password]

我正在尝试连接 Sequel Pro,我相信按照几个教程已经正确设置了 Vagrant/MySQL。我正在尝试通过 SSH 连接并尝试了 username/password 的多种组合。我相信正确的输入是:

MySQL主机:127.0.0.1

用户名:root

密码:[my_password]

SSH 主机:127.0.0.1

SSH 用户:vagrant

SSH 密钥:insecure_private_key

SSH 端口:2222

但是我仍然收到错误 "The SSH Tunnel could not authenticate with the remote host. Please check your password and ensure you still have access."

感谢任何帮助,谢谢

尝试以下配置并将其他所有内容留空。 (当然,如果您设置了root密码,请指定MySQL。)

MySQL Host: 127.0.0.1 Username: root Port: 3306 SSH Host: 127.0.0.1 SSH User: vagrant SSH Key: ~/.vagrant.d/insecure_private_key SSH Port: 2222

您需要选择 SSH 连接类型和 select 正确的私钥。

对于 Vagrant 1.6 及更早版本,私钥位于 ~/.vagrant.d/insecure_private_key。对于 Vagrant 1.7 及更高版本,私钥位于 Vagrantfile 所在的 .vagrant/machines/[vm_name]/virtualbox/private_key 中。

我遇到了同样的错误,这解决了我的问题。

ssh-add -K ~/.ssh/id_rsa

为我工作添加了我的密钥身份

ssh-add -K ~/.ssh/id_rsa