ssh 登录问题--WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

开发板重新烧录过后

再次ssh登录出现错误

dev_user@airfly-dev:~$ ssh root@192.168.11.177
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:mmHYEYZarnWXR5kG3VXJ3FLkx8WII6ZVX8JZwVyirq4.
Please contact your system administrator.
Add correct host key in /home/dev_user/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/dev_user/.ssh/known_hosts:18
  remove with:
  ssh-keygen -f "/home/dev_user/.ssh/known_hosts" -R 192.168.11.177
ECDSA host key for 192.168.11.177 has changed and you have requested strict checking.
Host key verification failed.

需要删除本地保存的目标设备的信息,目标板重新烧录固件后相当于全新的设备,虽然ip地址和原来一样

dev_user@airfly-dev:~$  ssh-keygen -f "/home/dev_user/.ssh/known_hosts" -R 192.168.11.177
# Host 192.168.11.177 found: line 18
/home/dev_user/.ssh/known_hosts updated.
Original contents retained as /home/dev_user/.ssh/known_hosts.old
dev_user@airfly-dev:~$  ssh-keygen -f "/home/dev_user/.ssh/known_hosts.old" -R 192.168.11.177
# Host 192.168.11.177 found: line 18
/home/dev_user/.ssh/known_hosts.old updated.
Original contents retained as /home/dev_user/.ssh/known_hosts.old.old
dev_user@airfly-dev:~$ ssh root@192.168.11.177
The authenticity of host '192.168.11.177 (192.168.11.177)' can't be established.
ECDSA key fingerprint is SHA256:mmHYEYZarnWXR5kG3VXJ3FLkx8WII6ZVX8JZwVyirq4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.11.177' (ECDSA) to the list of known hosts.
root@192.168.11.177's password: 
[root@airfly_rv1126:~]# 

 

 
posted @ 2022-04-01 11:57  mcdull^0^  阅读(44)  评论(0编辑  收藏  举报