执行机器:10.7.3.33

目标机器:10.7.3.34

 

[root@localhost /]# scprhel6u5.iso root@10.7.3.34:/

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

@    WARNING: REMOTE HOST IDENTIFICATION HASCHANGED!     @

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

IT IS POSSIBLE THATSOMEONE IS DOING SOMETHING NASTY!

Someone could beeavesdropping on you right now (man-in-the-middle attack)!

It is also possiblethat the RSA host key has just been changed.

The fingerprint for theRSA key sent by the remote host is

6d:81:66:d6:a4:88:f0:d8:d8:59:79:45:b5:d5:50:b9.

Please contact yoursystem administrator.

Add correct host key in/root/.ssh/known_hosts to get rid of this message.

Offending key in/root/.ssh/known_hosts:3

RSA host key for10.7.3.34 has changed and you have requested strict checking.

Host key verificationfailed.

lost connection


解决方法:删除与10.7.3.34有关的内容


[root@localhost /]# cat ~/.ssh/known_hosts

10.7.3.40 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyapS2mjM7Tzw5uL6CC/K0j4T6iUoS+RHPFWxenL8+tGboTyeUpZPNzlilBS99pCtA1YzwSNStQnLxZ6S3Aol3mA/z0ZNg2aQ9zUfMgUL/iwN3OA12tTpJhkFpuYluSKwydhGebUtn/J+NiD+fngkrdCfFOdUyLIDqZmwaGx7Yh/BsoAmKrztsSyAMJ5P3SwmrLLnkUuH2gb5fb3ml+44uD17+hR8rTaASvlN5OSdY4i/EhcfpfI3c4CPdOAiZVR/J53cTyNpe/NJbWwMb0cXNqfn6nGMgzqcnHDRPm0nkB0/EPpKeSbnbL1kgZO6nJ4eaf0osUq+h7rPzgVBVEinMQ==

10.7.3.20 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyapS2mjM7Tzw5uL6CC/K0j4T6iUoS+RHPFWxenL8+tGboTyeUpZPNzlilBS99pCtA1YzwSNStQnLxZ6S3Aol3mA/z0ZNg2aQ9zUfMgUL/iwN3OA12tTpJhkFpuYluSKwydhGebUtn/J+NiD+fngkrdCfFOdUyLIDqZmwaGx7Yh/BsoAmKrztsSyAMJ5P3SwmrLLnkUuH2gb5fb3ml+44uD17+hR8rTaASvlN5OSdY4i/EhcfpfI3c4CPdOAiZVR/J53cTyNpe/NJbWwMb0cXNqfn6nGMgzqcnHDRPm0nkB0/EPpKeSbnbL1kgZO6nJ4eaf0osUq+h7rPzgVBVEinMQ==

10.7.3.34 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3U/kSyVVOvg2v7tumzrM0WUsB2XdZT4ZX43jlMkFR280qlLU2QSO1XTIfz9r8VtXIC+8RjcQKlObWwKDUlXN2udRvU4czqiF8NYpGsl5tYjw2tfbeXxbBD0VyquTR2cKnuKcCbKPwt2nYcL7Reab6xX3LXZA6nYma35cO5xxOw+q+8Bq6uX/1j0gQWh7k69aQj6Azn8H4BmniWK0EBxsfjbUGzitnvElsbEp84U4pNy2i86PbXstBdwf4sxDhl+b/LMcQ67yoDInKFA8cwahqSp7FbAlbT9e1/50Avlt9joMUqdhER1fHAdrZW+RoKFyMNy8TGv1FsH4xPx1ZARbKw==

一切搞定:

[root@localhost /]# vi ~/.ssh/known_hosts

[root@localhost /]# scp rhel6u5.iso root@10.7.3.34:/

The authenticity of host '10.7.3.34 (10.7.3.34)' can't be established.

RSA key fingerprint is 6d:81:66:d6:a4:88:f0:d8:d8:59:79:45:b5:d5:50:b9.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '10.7.3.34' (RSA) to the list of known hosts.

root@10.7.3.34's password: