Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

A SSH host resolving to two of more IP address

I have a DNS entry to host name which resolve to two or more IP address. It seems like we are getting MITM warning due to this intentional configuration. What is the way to overcome this. Should we disable StrictHostKeyChecking but that would not be a good idea. I am wondering what is the recommendations.
Avatar of serialband
Flag of Ukraine image

Are both IP addresses valid?  Dose your DNS resolve both?  You can ssh to the IP address instead.  Either that or create secondary DNS names  (aliases) for each IP address.
Simple solution will be to setup an alias for 2x ssh commands, each using a hardcoded IP rather than host -> IP lookup.

If you ssh to IPs, rather than hosts, no requirement for StrictHostKeyChecking juggling.
Avatar of noci

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial