Post by simanto102 on May 19, 2024 4:49:12 GMT
However, using a self-managed VPS requires technical knowledge. If you do not have this knowledge and experience, then you may be at risk when using a self-managed VPS. how to use vps How to use self-managed VPS (unmanaged VPS) is more complicated, so it requires users to have certain knowledge. See more: What is VPS US? | Distinguish between US VPS & Vietnam VPS 4. Instructions on how to configure and use VPS with only, you can follow the detailed instructions below. 4.1. Step 1: Access VPS Server using SSH SSH is a network protocol that allows you to establish a connection to a server. To access the VPS Server via SSH, you need to use the root login information provided by the hosting provider. The command you need to use is: ssh [root username][server IP] For example:Step 2: Update the server After accessing the VPS Server, you need to update the operating system and software packages.
This will help ensure that your VPS is protected Greece Phone Number from security vulnerabilities. To update the operating system, you can use the following command: apt update && apt upgrade 4.3. Step 3: Create User on Server By default, only the root account has access to the VPS. Therefore, you should create a new user to use for daily tasks. To create a new user, you can use the following command: useradd [username] After creating a new user, you need to give that user sudo access. This will allow new users to execute root commands. To grant sudo permissions to a new user, you can use the following command: usermod -aG sudo [username] 4.4. Step 4: Verify Public Key authentication Enabling Public Key authentication will allow you to log in to your VPS using SSH without having to enter a password.
To do this, you need to generate an RSA key pair . Then you need to copy your Public Key to the VPS. To generate an RSA key pair, you can use the following command: ssh-keygen -t rsa After generating the RSA key pair, you will be asked to enter a passphrase. You can enter a passphrase or ignore it. To copy your Public Key to VPS, you can use the following command: ssh-copy-id [username]@[server IP] 4.5. Step 5: Set up firewall for VPS A firewall will help protect your VPS from unauthorized access. To set up a firewall for your VPS, you can use iptables. To add a rule that allows SSH, you can use the following command: iptables -A INPUT -p tcp -m tcp –dport 22 -j ACCEPT To add an HTTP permission rule, you can use the following command: iptables -A INPUT -p tcp -m tcp –dport 80 -j ACCEPT After completing these 5 steps, you can use your VPS.
This will help ensure that your VPS is protected Greece Phone Number from security vulnerabilities. To update the operating system, you can use the following command: apt update && apt upgrade 4.3. Step 3: Create User on Server By default, only the root account has access to the VPS. Therefore, you should create a new user to use for daily tasks. To create a new user, you can use the following command: useradd [username] After creating a new user, you need to give that user sudo access. This will allow new users to execute root commands. To grant sudo permissions to a new user, you can use the following command: usermod -aG sudo [username] 4.4. Step 4: Verify Public Key authentication Enabling Public Key authentication will allow you to log in to your VPS using SSH without having to enter a password.
To do this, you need to generate an RSA key pair . Then you need to copy your Public Key to the VPS. To generate an RSA key pair, you can use the following command: ssh-keygen -t rsa After generating the RSA key pair, you will be asked to enter a passphrase. You can enter a passphrase or ignore it. To copy your Public Key to VPS, you can use the following command: ssh-copy-id [username]@[server IP] 4.5. Step 5: Set up firewall for VPS A firewall will help protect your VPS from unauthorized access. To set up a firewall for your VPS, you can use iptables. To add a rule that allows SSH, you can use the following command: iptables -A INPUT -p tcp -m tcp –dport 22 -j ACCEPT To add an HTTP permission rule, you can use the following command: iptables -A INPUT -p tcp -m tcp –dport 80 -j ACCEPT After completing these 5 steps, you can use your VPS.