ssh连接远程主机时收到警告“REMOTE HOST IDENTIFICATION HAS CHANGED”

moonjerx
2023-11-24 / 0 评论 / 77 阅读 / 正在检测是否收录...

一、报错

admin@00e04c68075c ~ % ssh superpc@192.168.3.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:+qKNn9Q4gKyDrpbuuSLcswSu3mQYYMolKqfxuYPi8Dc.
Please contact your system administrator.
Add correct host key in /Users/admin/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/admin/.ssh/known_hosts:4
Host key for 192.168.3.100 has changed and you have requested strict checking.
Host key verification failed.

二、解决方法

sudo ssh -o "StrictHostKeyChecking=no" superpc@192.168.3.100
0

评论 (0)

取消

您的IP: