Change SSH Port in CentOS Linux
How to change SSH port from the standard 22 to, for example 339 in CentOS Linux. Although this method helps to stop the majority of opportunistic breakin attempts (cleans your log files up nicely too) it is by no means a complete solution. You should also restrict SSH access to a single IP address, look at /etc/hosts.allow and /etc/hosts.deny - also no online server should be without a firewall.
To change the SSH Port address, using 339 as an example, do the following:




