Re: Connecting to 2 machines with the same IP
- From: Wolfgang Meiners <WolfgangMeiners01@xxxxxx>
- Date: Wed, 07 Nov 2007 18:28:39 +0100
mpg schrieb:
Hi all,
At home, I've got 2 machine on my LAN, connected to the Net through a
routeur, thus sharing the same IP address. I'm using NAT port forwarding,
such that the router redirects port 22 from its public interface to port 22
of machine A, and port 10022 to port 22 of B :
22 -> 22
Net ----- NATbox +--- A
+----B
10022 -> 22
I often need to connect form the Net to both machine A and B. Unfortunately,
I allways have a warning, since there are 2 machine with the same IP, that
the certificate asociated to this IP has changed.
Is there any way to have two certificates associated with the same IP in
~/.ssh/know_hosts ?
Manuel.
Have you tried to put
Host HostA
HostName Name.of.Router # or IP of Router
Port 22
HostKeyAlias HostA
Host HostB
HostName Name.of.Router # or IP of Router
Port 10022
HostKeyAlias HostB
into your .ssh/config and then simply
ssh HostA
or
ssh HostB
to connect?
You could read man ssh_config to understand this.
Wolfgang
.
- Follow-Ups:
- References:
- Prev by Date: Re: Connecting to 2 machines with the same IP
- Next by Date: Re: Connecting to 2 machines with the same IP
- Previous by thread: Re: Connecting to 2 machines with the same IP
- Next by thread: Re: Connecting to 2 machines with the same IP
- Index(es):
Relevant Pages
|
|