我使用的是Ubuntu Precision32,并切换到14.04。我使用Jeffrey Way的设置(https://github.com/JeffreyWay/Vagrant-Setup),并且可以正常工作。我可以执行“vagrant ssh”并登录,然后使用用户名/密码root / root登录到root。

当我尝试将Sequel Pro用于GUI时,出现以下错误:

Used command:  /usr/bin/ssh -v -N -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o NumberOfPasswordPrompts=3 -i /Users/chrisfarrugia/.vagrant.d/insecure_private_key -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 -p 2222 vagrant@127.0.0.1 -L 52688/127.0.0.1/3306 -L 52689/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: Connecting to 127.0.0.1 [127.0.0.1] port 2222. 
debug1: fd 3 clearing O_NONBLOCK 
debug1: Connection established. 
debug1: identity file /Users/chrisfarrugia/.vagrant.d/insecure_private_key type -1 
debug1: identity file /Users/chrisfarrugia/.vagrant.d/insecure_private_key-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_6.2 
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH* 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none 
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none 
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
debug1: Server host key: RSA 9d:7c:86:00:20:5a:ca:ef:a0:8a:01:c6:ad:34:cf:de 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @ 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 
Someone could be eavesdropping on you right now (man-in-the-middle attack)! 
It is also possible that a host key has just been changed. 
The fingerprint for the RSA key sent by the remote host is 
9d:7c:86:00:20:5a:ca:ef:a0:8a:01:c6:ad:34:cf:de. 
Please contact your system administrator. 
Add correct host key in /Users/chrisfarrugia/.ssh/known_hosts to get rid of this message. 
Offending RSA key in /Users/chrisfarrugia/.ssh/known_hosts:1 
RSA host key for [127.0.0.1]:2222 has changed and you have requested strict checking. 
Host key verification failed. 

我在这里做错了什么?这是我在Sequel Pro中设置的屏幕截图。

请您参考如下方法:

我找到了答案。我必须为127.0.0.1删除我的known_hosts文件中已经存在的条目,然后该条目才能工作。

该文件位于〜/ .ssh / known_hosts


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!