having the default port 22 to something else on your hosting server can be something like preventing the hackers from accessing your server from the front door. Though you should note that this process would not make your server 100% safe from intrusion, but it can definitely keep professional hackers busy with finding other vulnerabilities on the server. However, changing the port of your SSH can add to the security of your server.
Do the step by step guide below.
# Edit she SSH config file:
Search for the line that has the value: #port 22
Change this and uncomment to something like:
port 46987
Or you can use any port assuming it's not being used by another service.
Once done, Save the configuration file:
Restart the ssh service by:
Please note, If you use a firewall open the port your changing to.
Import the attached file above into your settings. It will enable delete buttons next to the settings, after you delete those, you will be able to remove the settings group.