Backup problems using ssh because of host identification to a NAT

From: Pham Nuwen (none_at_none.com)
Date: 11/22/05


Date: Tue, 22 Nov 2005 16:24:23 GMT

Hello,

Well I've scoured the documentation, the web, and this newsgroup, and
haven't been able to find the answer to what bone headed thing I'm doing
wrong.

The situation in a nutshell is that I have a server (let's call it
something original like 'A' 8-) ) in location A, and server B & C in
location B behind a firewall. The fact that what I'm trying to do is
ultimately do some rsyncs from A to B&C, is I think neither here nor
there, I'm hung up on SSH authentication issues.

A badly done diagram:

[A]--[firewall]----[Private Line]----[firewall]---[B]
                                                |--[C]

Because B & C are behind a single IP they are running on different
ports. (1022 & 2022 respectively) The keys are all setup correctly, and
I have tested that they work individually to allow A to connect to
either B or C. The problem is the known_hosts file. If I add B then I
can no longer connect to C, because it complains about the potential MiM
attack. If I add C to known_hosts then it complains if I try to connect
to B. I played with StrictHostKeyChecking in the ssh_config file, but
even set to no, it doesn't do what I need.

How do I set it up so that ssh will either let both hosts be in the
known_hosts file, or that it will still connect, even with the potential
MiM attack (I don't care if it warns about it, but I want it to go ahead
and connect anyways).

All of this is using OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL
0x0090701f on RedHat EL3.

Thanks



Relevant Pages

  • How do I make ssh less "picky"?
    ... When I try to ssh into shell.panix.com, sometimes, from some systems, ... Other times it complains that the ... security is shoddy, and says that I have chosen high security standards. ...
    (comp.os.linux.misc)
  • Re: Seeding apt
    ... a newer generation by other means than using the upgrade tool built into ... update-manager. ... it complains if you do it over SSH [although it does start an ... emergency SSH server on some high port just in case]. ...
    (uk.comp.os.linux)
  • Re: nested escape chars in a shell command
    ... Complains its getting the wrong arguments to ssh. ... Eli ... Prev by Date: ...
    (comp.lang.python)