1.在执行scp命令时出现一下错误信息:
$ scp prod@192.168.99.120:/home/prod/UnicomBigData.tar.gz .
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
00:2e:34:15:1a:f9:da:9a:42:8f:7e:32:8d:9b:56:84.
Please contact your system administrator.
Add correct host key in /home/prod/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/prod/.ssh/known_hosts:1
remove with: ssh-keygen -f "/home/prod/.ssh/known_hosts" -R [192.168.99.120]:8822
ECDSA host key for [192.168.99.120]:8822 has changed and you have requested strict checking.
Host key verification failed.
2.问题解决:
—删除对应账户下 .ssh/known_hosts 文件(绝对路径: /home/prod/.ssh/known_hosts);
—再次执行 scp 命令问题解决。