Homepage

How to move default ssh port to another port in WHM/CPanel VPS

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 :

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

Exit mobile version