解决WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

因为项目很久没动过了,太久没去在服务器上打包。

项目的代码使用的是gi t,需要用到ssh.

固在打包的时候,因为太久没去使用。

打包的时候出现了类似的错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
3a:57:7c:bc:53:34:45:5c:89:61:44:64:00:32:d5:b2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.0.88 has changed and you have requested strict checking.
Host key verification failed.

解决办法:

vi ~/.ssh/known_hosts

找到并删除192.168.0.88的相关rsa的信息即可.

One response

发表评论

电子邮件地址不会被公开。 必填项已用*标注