输入命令
scp test.yaml root@172.xx.xx.xx:/opt/zjtest/
报如下错:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:GbmEQpqiTEe/ufpx5fb6p1hCcq7cVKpZoonry+CGkXo.
Please contact your system administrator.
Add correct host key in /Users/zj/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/zj/.ssh/known_hosts:38
Host key for 172.xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.
lost connection
解决方案:
移除电脑中172.xx.xx.xx缓存的秘钥
ssh-keygen -R 172.xx.xx.xx