
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Two ssh servers on one IP?
On Wed, Aug 01, 2007 at 06:00:42PM +0900, Darren Cook wrote:
> 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.
Cheers,
David
--
David Santinoli
Tieffe Sistemi S.r.l. viale Piceno 21, Milano
www.tieffesistemi.com tel. +39 02 45490882
Home |
Main Index |
Thread Index