linux内网SSH,SCP登录其他服务器Add correct host key in /root/.ssh/known_hosts to get rid of this message
某种原因重置linux系统以后,再用终端连接时出现如下错误提示:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:NwxdkYK98MN+n7waRXaRd0EkZoU/H9fyUApBk+feMp8.
Please contact your system administrator.
Add correct host key in /Users/name/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/name/.ssh/known_hosts:3
RSA host key for **.91.***.164 has changed and you have requested strict checking.
Host key verification failed.
============================
解决办法:
在客户端服务器执行ssh-keygen -R 要登录的171服务器ip(10.10.10.171)
然后重新连接,会询问
输入yes即可正常连接
锦鲤源码_源码论坛_源码社区 » linux内网SSH,SCP登录其他服务器Add correct host key in /root/.ssh/known_hosts to get rid of this message