
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Two ssh servers on one IP?
- Date: Wed, 01 Aug 2007 18:00:42 +0900
- From: Darren Cook <darren@example.com>
- Subject: [tlug] Two ssh servers on one IP?
- User-agent: Thunderbird 1.5.0.10 (X11/20070301)
I've a client with a firewall and two machines behind it, and I have an
ssh account on both, and both are assigned to the same IP but different
ports at the firewall. So I'd do:
ssh -p 1001 1.2.3.4
ssh -p 1002 1.2.3.4
The problem is that when I try the 2nd command, ssh very loudly tells me
someone might be doing a man-in-the-middle attack, and to set the
correct key in ~/.ssh/known_hosts. (I tried using "1.2.3.4:1001" and
"1.2.3.4:1002" in known_hosts, but they get ignored.)
Is my only option to edit known_hosts each time I want to switch the
server I log in to? (or log in to one, then log in to the other using
the private IP address)
Darren
--
Darren Cook
http://dcook.org/mlsn/ (English-Japanese-German-Chinese free dictionary)
http://dcook.org/work/ (About me and my work)
http://dcook.org/work/charts/ (My flash charting demos)
Home |
Main Index |
Thread Index