In this tutorial, we will move the default ssh port (22) to another port to prevent or reduce the ssh brute force attempt.
1. Login to your VPS using ssh
2. Move the ssh default port to another port, by editing the following file /etc/ssh/sshd_config :
12345678910 #Port 22Port 1156Â Â Â Â <-- use the port you have specified / open in the csf configuration(TCP_IN, UDP_IN))#Protocol 2,1Protocol 2#AddressFamily any#ListenAddress 0.0.0.0#ListenAddress ::ListenAddress 22.214.171.124Â <-- this is your VPS IP address
Reboot your VPS from the shell or from SolusVM, and Login again to the shell / ssh using the new port. After moving your default ssh port to another port, at least you can reduce or even prevent the brute force cracking attempt to your vps via ssh