Host key verification failed.

出现一下错误,原因是 /Users/tianlongxu/.ssh/known_hosts之前ssh过这台机器,导致key不正确,vi下 /Users/tianlongxu/.ssh/known_hosts文件,

然后删除跟ssh主机的相关的RSA key,我这里是删除192.168.1.113的 RSA key



tianlongtekiMacBook-Pro:~ tianlongxu$ ssh [email protected]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

fb:35:7f:9c:ec:46:af:d5:69:d2:5d:e8:01:b4:b3:fe.

Please contact your system administrator.

Add correct host key in /Users/tianlongxu/.ssh/known_hosts to get rid of this message.

Offending RSA key in /Users/tianlongxu/.ssh/known_hosts:6

RSA host key for 192.168.1.113 has changed and you have requested strict checking.

Host key verification failed.




你可能感兴趣的:(Host key verification failed.)