This tutorial will show you how you can change the port of your SSH connection. This will help you to avoid automated brute-force attacks to your server. To make this change we are going to change that editing the settings in 'sshd_config' file.
Most of the attacks are made by bots, not from a real person and they are targeted to the default services ports. When you change the port the shh service won't be attacked by artificial scripts, as it takes to much time the whole ports diapason to be checked.
The tutorial is written for Red Hat Linux like operating systems – Fedora, CentOS etc.
Connect to your server with SSH client . Switch to root and type:


