I have a VPS set up with multiple domain names pointing to it. Arbitrarily, I like to access it via SSH through the domain name I'm dealing with. So for example, if I'm doing something with
example1.com, I'll log in with
ssh firstname.lastname@example.org, and if I'm working with
example2.com, I'll log in with
ssh email@example.com. They both point to the same user on the same machine. However, because SSH keeps track of the server's fingerprint, it tells me that there is an offending host key, and makes me confirm access.
$ ssh firstname.lastname@example.org Warning: the ECDSA host key for 'example2.com' differs from the key for the IP address '22.214.171.124' Offending key for IP in /home/me/.ssh/known_hosts:33 Matching host key in /home/me/.ssh/known_hosts:38 Are you sure you want to continue connecting (yes/no)?
Is there a way to ignore this warning? Thanks!