Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to rsync data between Amazon EC2 instances. This command works:

ssh -i path_to_key/key.pem user@machine1

This command does not:

rsync -e "ssh -i path_to_key/key.pem" user@machine1:/whatever ./
Address some_ip maps to some_amazonaws_domain_name, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

What am I missing? Any way to fix that?

share|improve this question
    
This warning should not prevent the command from working. Is it actually broken or you are just annoyed by the warning? If it is not working, try adding a -v to both rsync and ssh and posting the output here, like this: rsync -ve "ssh -vi path_to_key/key.pem" user@machine1:/whatever ./ –  Aleksandar Ivanisevic Dec 29 '11 at 8:13
    
OMG, you are right, it really does work. I feel like an idiot. Assumed it wasn't working cause I had to fix the very same complain of ssh before. –  clorz Dec 31 '11 at 23:45

1 Answer 1

up vote 2 down vote accepted

Actually you are not missing anything, provided the path to the key is correct. The message you are seeing is because of the reverse lookup performed which will return aws domain name. It works like this, assuming that you are hosting abc.com on ip 123.123.123.123:
lookup(abc.com) returns 123.123.123.123
but rev_lookup(123.123.123.123) will return some amazon domain.

This happened to some of the servers I was managing and I got it fixed by editing DNS records for reverse lookup. Try that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.