在cmd执行远程连接命令:
ssh root@172.18.10.90 -p 31942
时出现错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:0mxD0Dovb3zhi3MPYizgox+nHvZbf2zW7sxdqSBnZJ0.
Please contact your system administrator.
Add correct host key in C:\Users\peng/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in C:\Users\peng/.ssh/known_hosts:11
Host key for [172.18.10.90]:31942 has changed and you have requested strict checking.
Host key verification failed.
解决方案:
执行以下命令:
ssh-keygen -R "[172.18.10.90]:31942"
再次执行:
ssh root@172.18.10.90 -p 31942
完成!