Identity added: Kgj02-fortress (Kgj02-fortress)

spawn ssh 122.9.2.2

Last login: Thu Jan 14 10:54:49 2016 from 61.8.38.1

[root@fortress02-new ~]# ssh  23.234.42.130

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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

ec:38:58:12:37:4b:0a:5d:c3:69:f6:8b:62:ba:9c:1d.

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:33

ECDSA host key for 23.234.42.130 has changed and you have requested strict checking.

Host key verification failed.


原因:

因为在/root/.ssh/known_hosts文件中有之前该主机ip对应的认证信息。所以在使用新key的时候,需要将之前的认证信息行删除即可

cat /root/.ssh/known_hosts

103.56.1xxx ecdsa-sha2-nistp256 AAAAE2VjZHNhbmlzdHAyNTYAAABBBDuBvO1OQ9bTF+vgvC/WAqtlO1gODejzsqky/iLV3PFt7/g30hjWYKUnncWgM50yRZtjwtVQ9B++lOW5YiWQxGs=

103.56.1yyy ecdsa-sha2-nistp256 AAAAE2VjZHNhLIbmlzdHAyNTYAAABBBI+bnC8jMZKgZapaHUx9sUL/kMP0vZYbnVC3qFD6zE98Rnsz9hvTaGQo/iTMChsC/m2BATWAof1Py6H1RnmHegY=

103.56.1zzz ecdsa-sha2-nistp256 AAAAE2VjZHNhLIbmlzdHAyNTYAAABBBKa437azcR+nyCwipQfTCRSCMcRAAKgjdT5rhoZ6Ht8qxdezCkaxQm0ebDsyPkK0ih9ZU50zihCxnuvs02FUaAc=

103.56.1uuu ecdsa-sha2-nistp256 AAAAE2VjZbmlzdHAyNTYAAABBBBVdLAC76U0M35mQiYcT50KycGowdhGntE6ygKRjli0mCWFRe+WNQqHputeju+Hq3+kaShCmhvqlaC5uFn6Ko4k=