尝试使用 Sequel Pro 进入这个流浪盒子。错误详细信息屏幕是;
Used command: /usr/bin/ssh -v -N -S none -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o NumberOfPasswordPrompts=3 -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 vagrant@control.example.dev -L 57790:127.0.0.1:3306
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Control socket " none" does not exist
debug1: Connecting to control.example.dev [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host control.example.dev port 22: Connection refused
一旦我在(vagrant ssh
)中进行了 ssh,我就可以在命令行上登录到 mysql。
我可以进入,mysql -uroot -p
然后输入空白密码。
我在 Sequel Pro 上的连接是;
MySQL主机:127.0.0.1
用户名:root
SSH 主机:control.example.dev
SH 用户: vagrant
其他都是空白!