Technical article 127035

r-utilities using ssh as transport fail

OpenServer 6.0.0OpenServer 5.0.7UnixWare 7.1.4

Written · Last revised

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 /software
I 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_key
and run the commands:
/etc/rc2.d/S85tcp stop
/etc/rc2.d/S85tcp start

or 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)?

From the Xinuos technical article database, record 127035. Reproduced with permission. The original is at www.sco.com/ta/127035, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.