WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

urgel_babay發表於2016-03-01
2015.01.08

[root@zhanglin4 u02]# scp exp0107.tar.gz 172.17.210.183:/orabak/dmp
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
f0:b9:39:0d:9e:6f:62:ba:b1:71:e4:52:f5:a3:cf:2f.
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:2
RSA host key for 172.17.210.183 has changed and you have requested strict checking.
Host key verification failed.
lost connection

解決辦法:
[root@zhanglin4 ~]#  cat ~/.ssh/known_hosts
172.17.210.112 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1z7xmsR/2l7ihPDco6Bdon3SgeN13MUT5qKgfkwlS0AHWMhBUQ761oi20OC+ZV0YkeachfjIF9xELFo0+wsDFyKbNaHsMoeWD8TzMCeQd8WiR6gDiky7l0mbgh6CX+jvkHG/RBCsKkHtyk/wT7JeRElRRN7hvfna639hzqxAZVmT3o9BpEFV2pjayvhl1YuJthJeSl+c3xJMmrfVmo6yy8c37+zwXqd2MbbL+nNaa3nCPC7oLeVYs5CXC4E0vuI0mYg30TDvGdcrCxW0nByVxAzeEvsD9yzwS2aZTi+RMnMq2XACP11PzMLJljGMwe5cTjjYcSLChROHDKsg63RrYQ==
172.17.210.183 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2ei4okk+hIbCPnQgJSw9EzLMWGd3s1byPrwA9/fXiRFsZatUP4CFDzmT/AdOZAlTG+lyGhRZDg5Q2mhmd+tIt8OCcImTAZMPexGxo0q5ZZCZOvv9AHL7Vu1sB6FSiXkLKfm5Fr2n2SZcZGb33lSpLXOJlt5rBF9kY1nT/Fwt5c1NAjFGpcwH+T820+NtxdX7+ZzCjmsLd7Hk2L6MRAAozq+rS3Kco9yx4na0HwTNQra0B3oZunsOn9z847zwvSEQ9g0Mb26zMFUpT3noqnftsw8sjocXAR17SYh0NyAWOJ3tXbXEk24LQccgqbblDSeqQ2xWJjGCxoawpMC0t6Ig9Q==
172.17.210.184 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtuQ8ZczO5F63dEm+CUM2AFjU9+tWnfemjY6IsM1vsvvONtXBWhJEtBhtIBzmbO2OfYT+8WD4QENtkD2GnA4unXIgUA27EqQi8gV22SdfCMFqekB47TB17mYP3kYqj5HYGIuCEVT/krhpg1/TNOVz01tOhyEUuKhObJjncnZrqgn4dsXYFhejmP67u1S0rzL03YILsAMN9TpXFZViPfPVtWJtxod3ZxwtG44/3Eqb2Ymh6wmioXPgwCBQxa37HHPGkxe/S3AFxdZkcreEMgADqKw/bvsNgGmqFkF+cW7yx/Xp0zYp2XtolZMu00NahY66zode41Jut5dIRpDwBywWLw==
[root@zhanglinbidevelop4 ~]#
把172.17.210.183 這條刪掉後,儲存檔案即可!
這個./ssh下面儲存的是你曾經ssh過的伺服器的密匙檔案。如果對方伺服器使用者的密碼修改了,你本機再次ssh的時候就會對照本地儲存的,看是否匹配。不匹配就會丟擲錯誤!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2018406/,如需轉載,請註明出處,否則將追究法律責任。

相關文章