jsilvestre

Member
Jul 7, 2005
24
0
151
Change SSH port

Dear grabyourhosting,

change line Port 22 on file /etc/ssh/sshd_config.
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
If you are running apf, add the port number on wish to run SSH in the file /etc/apf/conf.apf
Open the file and add here. You can see other port numbers, add the port umber you wish. restart apf using, apf -r

# Common ingress (inbound) TCP ports
IG_TCP_CPORTS=

If there is no apf, add the iptables rule like this.

iptables -I INPUT -s 0/0 -- dport -p port_number -j ACCEPT

Now save the rule
service iptables save