i'm resending this mail as it somehow didn't arrive to the list

erez.

---------- Forwarded message ----------
From: Erez D < [EMAIL PROTECTED]>
Date: Oct 18, 2006 5:29 PM
Subject: solved (was: 2 ssh servers on 1 ip)
To: Israel Linux Mailing list <linux-il@linux.org.il>, Jason Friedman < [EMAIL PROTECTED]>

thanks you all for replying,

altough the hosts or dns methods works, i chosen to use the more elegant way
(thanks jason)


i added a file:

==== ~/.ssh/config begin =====
Host server1
    Hostname my_external_ip.com
    Port 501
    HostKeyAlias server1
             
Host server2
    Hostname my_external_ip.com
    Port 502
    HostKeyAlias server2

==== ~/.ssh/config end===

from now on i do not need to remember the port numbers,
do not need to update /etc/hosts or dns
just need to do:
    ssh server1
or
    ssh server2


thanks,
erez.

Reply via email to