Securing SSH, SSHD CentOS 5, CentOS 6

How to

By default, ssh listens for incoming connections on port 22. For a hacker to determine ssh is running on your machine, he’ll most likely scan port 22 to determine this.

To make the change, add a line like this to your /etc/ssh/sshd_config file:
viĀ /etc/ssh/sshd_config
Now change the list Port to anything you choose, except a port that is reserved for known services.
Port 23145  #Change me

Leave a Reply