Using the built-in Plesk firewall
Although you could edit the firewall from the command-line it is much easier using Plesk’s firewall instead.
Just navigate to Modules > Firewall. If you have a static IP address you can create rules so that the server will only allow access from your IP address at your home and/or office.
By default the SSH standard port number is 22. If you look at your logs you might see a large number bad login attempts on that port. Changing this port number is a simple way to make your server more secure. To change the port number login as root and run the following command:
Find the line that says:
Change this line to another port number above 1024. Using a port number above 1024 prevents scans like nmap picking up ssh.
Save the sshd_config file and then restart sshd.
Leave a Reply
You must be logged in to post a comment.