Portal Home Knowledgebase Education Setting Up Ubuntu 22.04 on Your VPS

Setting Up Ubuntu 22.04 on Your VPS Print

  • 0

This guide walks you through the initial setup of Ubuntu 22.04 on your VPS. The VPS already has Ubuntu 22.04 pre-installed.

Step 1: Access Your VPS

1.Open a terminal or an SSH client (e.g., PuTTY).

2.Connect to your VPS using SSH:

 

ssh root@<your-vps-ip>

 

 

3.Enter your root password when prompted.

 

Step 2: Update and Upgrade Packages

1.Update the package list:

 

sudo apt update

 

 

2.Upgrade installed packages to the latest versions:

 

sudo apt upgrade -y

 

Step 3: Configure the Hostname

1.Set a unique hostname for your server:

 

sudo hostnamectl set-hostname <your-hostname>

 

 

2.Verify the hostname:

 

hostnamectl

 

Step 4: Create a New User (Optional)

1.Add a new user:

 

sudo adduser <username>

 

 

2.Grant administrative privileges:

 

sudo usermod -aG sudo <username>

 

Step 5: Configure Firewall

1.Enable the UFW firewall:

 

sudo ufw enable

 

 

2.Allow SSH traffic:

 

sudo ufw allow ssh

 

Step 6: Secure SSH Access

1.Disable root login for added security:

 

sudo nano /etc/ssh/sshd_config

 

 

2.Set PermitRootLogin no and restart SSH:

 

sudo systemctl restart sshd

 

Step 7: Install Common Tools

1.Install essential utilities:

 

sudo apt install -y curl wget git unzip

 

Step 8: Reboot the Server

1.Restart the VPS to apply changes:

 

sudo reboot

 

Your Ubuntu 22.04 VPS is now ready for further configurations, such as setting up a web server, database, or any application. For additional assistance, feel free to reach out to our support team.


Was this answer helpful?

« Back