偶然一次升级发生的异常,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 ED25519 key sent by the remote host is
SHA256:F2BQ0K8O8s/5jz6wMnOAoLDQaQLQH9h1CSOknBF2+wY.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
ED25519 host key for 192.168.1.168 has changed and you have requested strict checking.
Host key verification failed.
lost connection
掐指一算,应该是因为ssh的认证变了吧,update一下就好了
ssh-keygen -R [192.168.1.168] [括号内为远端服务器的IP地址]