scp -r 命令失败,提示WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:KgvGrLlVjLvoi9ZkFv9QG3hy+sO2ZIh+rZrMHZFua9U.
Please contact your system administrator.
Add correct host key in /Users/honnylious/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/honnylious/.ssh/known_hosts:2
ECDSA host key for 172.18.16.231 has changed and you have requested strict checking.
Host key verification failed.
lost connection

解决办法:输入ssh-keygen -R ip地址,重新scp即可

你可能感兴趣的:(问题,ssh,linux)