ssh登陸 “remote host identification has changed!“ 解決方案

衣舞晨風發表於2018-01-12

具體錯誤資訊如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
52:e3:eb:82:74:18:4a:08:2d:19:d3:91:3a:71:da:0c.
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:97
ECDSA host key for 10.10.140.114 has changed and you have requested strict checking.
Host key verification failed.
lost connection


解決辦法:

vi /etc/ssh/ssh_config
StrictHostKeyChecking no

或者

將ssh源主機(輸入ssh命令的機器)中/root/.ssh/known_hosts中對應機器ip的資訊刪除

擴充閱讀:
http://www.51testing.com/html/38/225738-234384.html

個人微信公眾號:
這裡寫圖片描述

作者:jiankunking 出處:http://blog.csdn.net/jiankunking

相關文章