How can I suppress the "…this does not map back…" message when using SSH?

Octopus asked:

I am writing a script that attaches to several of our machines via SSH to check some usage stats.

Each time I do:

ssh -i ~/.ssh/ourkeyfile.pem user@host

I get the typical message:

Address X.X.X.X maps to somedomain.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Is there a commandline switch for ssh that lets me suppress this message from appearing in the output of my script?

My answer:


Fix the reverse DNS entry (PTR record) and possibly the forward entry (A and AAAA records) for the host in question.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.