2011年1月4日 星期二

用ssh連另一台主機時出現WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

連ssh時出現以下:
ssh> scp xx.bk test@10.10.10.10:/home/test
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
07:16:cd:be:a5:a0:93:9f:5c:3c:55:e6:a8:f1:1e:2b.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 10.10.10.10 has changed and you have requested strict checking.
Host key verification failed.
lost connection


解決方式:
1.進入家目錄 ex:/home/peijuan
2.vi ~/.ssh/known_hosts
3.將欲連接的主機名稱的 Key 給刪除,如下:
aaa,10.10.10.10 ssh-rsa AAAA.......

沒有留言: