ssh RSA key变化后处理

root@localhost:/# scp -r root@172.19.47.30:/home/linux-4.16.2-devm.1.2.aarch64.dongbo ./
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:mT42yn9gpr4Lpfy2wjikNYdSC2SxdJJuL8QxfNNUhrY.
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:10
remove with:
ssh-keygen -f "/root/.ssh/known_hosts" -R "172.19.47.30"
ECDSA host key for 172.19.47.30 has changed and you have requested strict checking.
Host key verification failed.
root@localhost:/# ssh-keygen -f "/root/.ssh/known_hosts" -R "172.19.47.30"
# Host 172.19.47.30 found: line 10
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
root@localhost:/# scp -r root@172.19.47.30:/home/linux-4.16.2-devm.1.2.aarch64.dongbo ./
The authenticity of host '172.19.47.30 (172.19.47.30)' can't be established.
ECDSA key fingerprint is SHA256:mT42yn9gpr4Lpfy2wjikNYdSC2SxdJJuL8QxfNNUhrY.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.19.47.30' (ECDSA) to the list of known hosts.

posted on 2018-11-06 10:42  Shihu  阅读(824)  评论(0编辑  收藏  举报

导航