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?
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.