How to Increase Security on VPS server

Improving the security of the VPS server is very important, especially for those of you whose VPS contains important files. Even though you are using a Linux-based OS which has a higher level of security than other OS, it is important to maintain the security of the VPS server from hacker attacks.

The standard security of a Linux-based OS is pretty good, and better than most other OS’s, but it still has its drawbacks. Even the better ones still have their drawbacks. That’s why keeping your VPS secure is so important. How important is it to improve VPS security?

The Importance of Paying Attention to VPS Security

Maybe you already understand, lately there have been a lot of attacks/or threats from irresponsible hackers. Maybe some of them are malware attacks, data theft, defacing, DDOS, or something else.

From there you may already understand how important it is to maintain server security, especially in today’s era. If you look at it, currently the crime cases in the digital world are endless. There are so many incidents that harm companies or individuals due to lack of security from the server side.

This is certainly very detrimental to us as server owners, for example, your server is hit by a ransomware virus attack that encrypts all files on your server. This makes the files on your server unable to be opened other than having to send a copy to open the encrypted file.

Risk if you are not aware about server security

What are the risks you can get if you are not aware of increasing the security of your VPS server. There are so many losses that you can get if you don’t care about the security of your server.


of the risks that you can get if you don’t maintain server security include:

  1. Theft of personal/customer data,
  2. important files lost,
  3. Server not running optimally
  4. The server is down and the website stops operating,
  5. Etc

These few examples are a small part of the problems that arise if you are not aware of the security of your server. So here are some ways to improve server security that you can apply on the server side:

id="cara-mengamankan-dan-meningkatkan-keamanan-server-vps-kamu">How to Secure and Improve Your VPS Server Security

Actually, when you buy a VPS, your VPS is already safe. Especially if you use a Linux VPS which has more security, according to the explanation above. But over time when managing VPS sometimes some people make errors that result in server security decreasing.

Here are some ways to increase VPS server security:

1. Disabling Root Login

Root is the user with the highest authorization, With root you can do anything to your VPS server. Currently, there are many tools that hackers use to gain root access, one of which is by guessing credentials with a tool that runs automatically.


the hacker has found the credentials of the root user then it is very dangerous, Because the hacker gets full rights to the server. Therefore you should disable root login.

You can create a new user with access authorization that suits your needs, but does not have full access to the server. To get full access you can use the “sudo” command to run root level commands.

To disable your root login you can go to /etc/ssh/sshd_config in nano or vi and find the parameter “PermitRootLogin”. On “PermitRootLogin” Change “YES” to “NO”.

2. Changing SSH Port

By default the SSH port is 22, this of course makes many servers use port 22 for SSH connections, so hackers will try to directly connect to that port.

If you change the SSH port, hackers will find it difficult to connect directly to the SSH port. It’s definitely hard for people to hack into SSH when they can’t find it.

To change the SSH port, you must open /etc/ssh/sshd_config and change the settings accordingly. Make sure when changing the SSH port, the port used is not used by other services.

3. Make sure to use the latest software


improve server security, you must at least use the latest software, this minimizes bugs that affect security in previous versions. When you update to the latest software, of course, in terms of security, it must be improved.

To update the software the method is quite easy, you can use it to update the software to the latest one. You can use the rpm / yum (CentOS / RHEL) or apt-get (Ubuntu / Debian) package managers to upgrade to newer versions of installed software, modules, and components.

4. Disabling Unused Ports

Disabling unused ports minimizes attacks from hackers exploiting unused open ports. You can use the “netstat” command to see all currently open network ports and related services.

If you use an Indonesian VPS from Jagoan Hosting, namely VPS X, you can manage ports easily. Because by just logging into the member area of ​​herohosting you can manage which ports are used, so you can more easily manage your server ports.

5. Configure Firewall

Firewall is very important for server security, you should use firewall to increase your VPS security. You can use NetFilter, NetFilter is a firewall that is integrated with the Linux kernel, and you can configure it to filter unwanted traffic.

With these firewall tools you can fight distributed denial of service (DDos) attacks. That way at least your server can overcome DDOS attacks that can consume your server resources.

You can also use TCP Wrapper, TCP Wrapper is another useful application, a host based access control list (ACL) system that is used to filter network access for various programs.

6. Install Antimalware / Antivirus Software

Antimalware / Antivirus is very important to be installed on the server, because it is to maintain and improve the security of your server. If your server is exposed to malware/virus to remove malware, you need an antivirus installed on the software.

Some people consider antimalware less important, especially those who use linux. Even though this is the wrong thing. Currently, there are many viruses/malware that are specifically designed for Linux.

They even question the price of antivirus software which is quite expensive. You can use software ClamAV and Maldet are two open source virus antivirus applications that can scan your server and assess potential threats.

7. Prevent Anonymous FTP Uploads

Allowing anonymous users to upload via FTP is a big security risk, as it allows anyone to upload whatever they want to your web server.

If you use a panel like CPanel or plesk, Both panels disable Anonymous FTP uploads. If you are using without a panel, you can check your FTP configuration, Or when installing FTP make sure that anonymous uploads are disabled.

8. Install Rootkit Scanner

One of the most dangerous pieces of malware is rootkits. The rootkit itself exists at the operating system (OS) level, below other normal security software, and can allow access to servers without being detected.

Because rootkits are very dangerous, Fortunately, you can use “chkrootkit”, which is an open-source tool that works to find out if your server is infected.

But rootkits are quite difficult to get rid of and the best way to fix this problem is often to reinstall the OS.

9. Use a Strong Password

Using a strong password can increase the security of your VPS server, you must have read before that a system can be attacked by the brute force method, the attack is by using a combination of numbers and letters to match and guess the user’s password.

If you use a weak or non-unique password, then the brute force tools used by hackers can easily get your password. We recommend using a unique and long password so that it is not easy to hack.

Those are some ways to improve VPS server security that you can apply to your server.

Create by Ipadguides in category of Website