Avatar of Balbir Singh
Balbir Singh
Flag 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.
SSH / Telnet SoftwareDNS

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
serialband

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.
David Favor

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.
ASKER CERTIFIED SOLUTION
noci

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23