FOO.COM has two A records. 1.1.1.1 and 2.2.2.2. If I connect to ssh root@FOO.com then it sometimes can connect, sometimes it writes that there is a key mismatch, update known_hosts file. So I know that what is causing this (the two IP address behind the domain..).. but how can I resolve it? And: -o StrictHostKeyChecking=nono, this shouldn't be the solution :D
Bad known_hosts file when connecting to loadbalanced domain
ssh
mv known_hosts known_hosts_old; ssh-keyscan FOO.com > known_hostsit works