Multiple ssh keys in known_hosts possible?

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Thu Jul 12 23:36:00 UTC 2007


Madison Kelly wrote:
> Hi all,
>
>   I've got a situation where a few machines may answer an ssh request
> to a given IP. Specifically, I've got port forwarding on my firewall
> that routes certain (>1024) ports to machines MASQ'ed behind it. In
> the other case, I have a 2-node cluster. During fail over the slave
> node would answer requests (specifically; from the backup server
> running rsync over ssh).
>
>   The problem is that because the IP /doesn't/ change, ssh sees a
> different key and refuses to connect. Is there a way to tell ssh that
> keys A *or* B are valid for IP X?
>
>   

You've just discovered one of the reasons why NAT is not such a hot
idea.  If both computers are your own, you might consider copying the
private key from one to the other, though you should be careful with
such a thing.


-- 
Use OpenOffice.org <http://www.openoffice.org>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list