Re: Known hosts file and host with multiple SSH ports

From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 07/26/05


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


"Darren Tucker" <dtucker@gate.dodgy.net.au> wrote in message
news:42e5d68e$0$5444$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
> On 2005-07-26, Jochen Wiedmann <jochen.wiedmann@gmail.com> 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.