
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Two ssh servers on one IP?
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)
Home |
Main Index |
Thread Index