A good first thing to do upon the completed provisioning of your VPS or Dedicated Server running Linux, is to change your SSH port. This will stop the constant network scans that are looking for SSH and other services.
To change the SSH port, please follow the instructions below:
- Login to your server via SSH (Putty)
- Open up the ssh config file: $ nano /etc/ssh/sshd_config
- Uncomment the line that sets the Port number (comments are established with the pound sign (#)) and change the port.
#Port 22
->
Port ???? - Save the file (Ctrl-X with nano).