[CentOS] Running SSH on a different port
rgm at htt-consult.com
Mon Oct 26 02:54:06 UTC 2009
> HI All,
> With my new firewall in place, it has opened my eyes to how much
> traffic gets blocked in a single day and also what are the most active
> rules. I get *a lot* of requests for port 22.
> How does one switch ssh ports? What is a good port to use? What
> ramifications does it have when I need to ssh in? Is it as simple as
> ssh user at hots:port?
Perhaps the first thing I do on a new server is:
And uncomment the port line, change the port number to my favorite port
number, save the file, then restart sshd.
I much perfer this method to setting up port limiting runs in iptables
More information about the CentOS