This question already has an answer here:
I log in to the rhel5 machines at my school from home via ssh and it automatically sends me to the computer with the least load. So
ssh -Y itsme@myShcool.edu will send me to either mySchoolA.edu mySchoolB.edu, or mySchoolC.edu. I can log into the individual computers with no issue but when, but when I use
itsme@myShcool.edu , sometimes I get a message about a man-in-the-middle attack and possible DNS spoofing, and I'm directed to ~/.ssh/known_hosts to remove the offending key. Removing the offending key works the first time I log in (I'm prompted to add the host to known_hosts, which I confirm).
Is it possible to log in using
itsme@myShcool.edu and not get this message nor have to manually remove the offending keys each time?
One thing I tried that doesn't seem to work is adding the following to ~/.ssh/config
Host hostIPaddress StrictHostKeyChecking no UserKnownHostsFile=/dev/null
Any help would be much appreciated.