Known hosts file and host with multiple SSH ports

From: Jochen Wiedmann (
Date: 07/26/05

Date: 25 Jul 2005 23:02:40 -0700


I have an IP address with multiple SSH servers running on several
ports. (The reasons is that the SSH servers are in fact running on
other machines, it is simply that the firewall provides access on a
single IP address.)

This works fine, in general, with one exception: Whenever I switch
from one port to the other, then the SSH client claims, that the
servers key has changed, because the known hosts file contains the
entry, which was created while accessing the other port.

Are there any suggestions, other than editing the known hosts file,
whenever required?