linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决

mac 下连接 linux 一般只需要 输入 ssh 用户名@ip地址 即可。但是经常出现这个错误。。。。。。。。。。。。。。。。。。。。

  1. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  2. @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
  3. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  4. IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  5. Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  6. It is also possible that a host key has just been changed.
  7. The fingerprint for the RSA key sent by the remote host is
  8. SHA256:umhwOOOtcz2P6sNppUC2kz0rTluDfynGhVKIkwQwnT8.
  9. Please contact your system administrator.
  10. Add correct host key in /Users/liuyanzhao/.ssh/known_hosts to get rid of this message.
  11. Offending ECDSA key in /Users/liuyanzhao/.ssh/known_hosts:4
  12. RSA host key for 101.112.11.111 has changed and you have requested strict checking.
  13. Host key verification failed.

解决办法如下

输入

rm -rf ~/.ssh/known_hosts  

然后重新连接即可。

linux 远程连接ssh提示IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY解决


本文地址:https://liuyanzhao.com/6338.html