Problem
I want to rsync files from sysA to sysB using ssh as a secure transport. When running:
# rsync --rsh=/usr/bin/ssh -avz sysB::SOFTWARE /softwareI get the following message:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@
@ 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. Solution
You can either add the correct host key in:
/.ssh/known_hosts or remove the files
/etc/ssh/ssh_host_key
/etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_dsa_keyand run the commands:/etc/rc2.d/S85tcp stop
/etc/rc2.d/S85tcp startor reboot your server at the earliest opportunity.
This will generate the server keys. The next time you rsync you will get a RSA key fingerprint and the question
Are you sure you want to continue connecting (yes/no)?