1. 使用命令行进行ssh或者scp命令的时候,有可能遇到如下的错误信息@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 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 isSHA256:OE6sPYp**********+OiyikosYaXnPbblp/kniUOBg9lA.Please contact your system administrator.Add correct host key in C:\\Users\\admin/.ssh/known_hosts to get rid of this message.Offending RSA key in C:\\Users\\admin/.ssh/known_hosts:1RSA host key for ip has changed and you have requested strict checking.Host key verification failed.lost connection
错误的原因是接收方服务器系统做了某些更改,导致登录时会报错。主要因为接收方服务器对登录过它的主机都会把该主机登录标识证书记录下来,下次登录时会去比对之前的记录,由于系统变更导致不能继续登录
打开命令行输入命令回车 : ssh-keygen -R 接收方ip