以前使用 SSH 登录公司服务器,挺好使!但是,今天它罢工了。
像往常一样,在终端输入命令登录服务器:
- sudo ssh -l root 192.168.0.88
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @ 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
- 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de.
- 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.
使用超级用户,为了进入 root/ 目录:
- su
- cd /root
- ls -al
- cd .ssh/
在该目录下面有个文件 known_hosts,使用 vim 打开该文件:
- vim known_hosts
再次使用 SSH 登录,出现下面的信息:
- The authenticity of host ‘192.168.0.88 (192.168.0.88)’ can’t be established.
- RSA key fingerprint is 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de.
- Are you sure you want to continue connecting (yes/no)?