hello there
if you want to change your default ssh port it's quit an easy thing to do.
login to your elastix linux ssh
go to /etc/ssh/sshd_config
change
Port 22 this to what ever you want
save the config file
now restart the sshd service
/etc/init.d/sshd restart
that's it
also i recommend you to restrict access from the outside world
type
setup>firewall configuration>Enabled
now go to /etc/sysconfig/iptables
add this script
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
:LOG_DROP - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -s youripaddress -p tcp -m tcp --dport yoursshport (default 22) -j ACCEPT
-A RH-Firewall-1-INPUT -j LOG_DROP
-A LOG_DROP -j LOG --log-prefix DROP:
-A LOG_DROP -j DROP
comment the
#-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
this script will drop all unnecessary packets and will only accept ssh connection from you ip address! and yes don't forget to open sip udp5060 and rtp udp10000:20000 ports
now restart the iptables service
/etc/init.d/iptables restart
chkconfig iptables on
hope this was helpful for you