Re: Known hosts file and host with multiple SSH ports

From: Nico Kadel-Garcia (
Date: 07/26/05

Date: Tue, 26 Jul 2005 07:53:58 -0400

"Darren Tucker" <> wrote in message
> On 2005-07-26, Jochen Wiedmann <> wrote:
>> 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?
> $ man ssh_config
> [...]
> HostKeyAlias
> Specifies an alias that should be used instead of the real host
> name when looking up or saving the host key in the host key
> database files. This option is useful for tunneling ssh connec-
> tions or for multiple servers running on a single host.

I'm not sure Putty or the other GUI Windows clients support this, or support
it well.