Re: Connecting to 2 machines with the same IP



On 8 Nov, 13:16, mpg <manuel...@xxxxxxx> wrote:
mpg wrote:
Obviously, I didn't ;) This HostKeyAlias option is exactly what I was
looking for. Thank you. I'm going to add the HostKeyAlias to my
.ssh/config immediatly!

By the way, I also had to use the 'CheckHostIP no' option, otherwise ssh
would insist on storing a key for the IP in .ssh/know-hosts while
connecting on the 1st machine, and then would complain about an offending
key for this IP when connecting to the 2nd machine.

Since I added this CheckHostIP and manually deleted the key associated to
the IP in know-hosts, it works perfectly fine. Unfornetunately, it makes me
sensitive to DNS spoofing attacks, but I hope it's not too big an issue.

Manuel.

The faster and easier option is to give both machines the same SSH
keys.

.