different servers on different ports

Marc Haber openssh-unix-dev.mindrot.org at marc-haber.de
Sat May 13 04:42:53 EST 2000


I have the following unusual setup:

F is a firewall host. Its external Interface has IP, and
the internal Interface ist

A and B are internal hosts with IPs and

F's port 10022 is transparently forwarded to A's port 22;
F's port 20022 is transparently forwarded to B's port 22.

So, connecting to gives an ssh connection to A;
connecting to gives an ssh connection to B.

Obviously, the ssh client can't cope with that since it complains
about the different host keys.

Wouldn't it be a good idea to have the client cache IP:port to
known_hosts instead of the IP only? That way, it would also be
possible to run differently configured ssh daemons on a single box.

Or am I missing something and there are reasons to handle IPs instead
of IP:port pairs?


-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

More information about the openssh-unix-dev mailing list