Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Two ssh servers on one IP?
- Date: Thu, 02 Aug 2007 08:54:33 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Two ssh servers on one IP?
- References: <46B04BBA.1040609@dcook.org> <20070801103850.GA9002@aidi.santinoli.com>
- User-agent: Thunderbird 1.5.0.10 (X11/20070301)
Thanks David, Josh, Jep200404, for the quick replies. The below worked! I am relieved to see the ssh designers had foreseen my predicament! Even better, I no longer have to remember the -p parameter! Darren >> 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 > > Set up two entries in .ssh/config: > > Host srv1 > Hostname 1.2.3.4 > Port 1001 > HostKeyAlias srv1 > > Host srv2 > Hostname 1.2.3.4 > Port 1002 > HostKeyAlias srv2 > > Then use the shortcuts "ssh srv1" or "ssh srv2" to connect. -- 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)
- References:
- [tlug] Two ssh servers on one IP?
- From: Darren Cook
- Re: [tlug] Two ssh servers on one IP?
- From: David Santinoli
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Emergency nomikai August 17th?
- Next by Date: Re: [tlug] [OT] Good IT Resume
- Previous by thread: Re: [tlug] Two ssh servers on one IP?
- Next by thread: Re: [tlug] Two ssh servers on one IP?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links