1、遇到的问题
ssh jsy@xx.xx.com登入服务时;出现登入不上的情况
出现如下提示错误
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for xx.xx.com has changed,
and the key for the corresponding IP address 10.200.27.80
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:qwerthklnfancklanfenfknenfnkdldmlsAS21331NENNSjkl.
Please contact your system administrator.
Add correct host key in /Users/jsy/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/jsy/.ssh/known_hosts:1
RSA host key for xx.xx.com has changed and you have requested strict checking.
Host key verification failed.
2、解决方法
rm -rf /Users/jsy/.ssh/known_hosts