jiadjmatoMacBook-Pro:~ jiadj$ ssh root@192.168.1.105
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
e1:94:6c:3c:f2:26:c0:22:c6:8c:df:42:82:69:c5:6d.
Please contact your system administrator.
Add correct host key in /Users/jiadj/.ssh/known_hosts to get rid of this message.
Offending key in /Users/jiadj/.ssh/known_hosts:10
RSA host key for 192.168.1.105 has changed and you have requested strict checking.
Host key verification failed.
这是因为同一个IP远端的机器信息有变动,与存在本地的公钥不相符。
直接修改本地,将预存的信息去掉。
jiadjunmatoMacBook-Pro:~ jiadejun$ vi /Users/jiadj/.ssh/known_hosts
指到13行,用命令:13
dd 删除该行。
在编辑模式下输入
ngg 或者 nG
n为指定的行数(如25)
25gg或者25G 跳转到第25行.
在命令模式下输入n
: n
如跳到第25行,直接输入25
保存