Requirements:

Installing Rocky Linux 8 on AWS EC2 instance

To use AWS, you will need an account. If you don’t have one, we can’t help you. ..

1. Log in to AWS and access EC2 Dashboard

Ec2 Dashboard

2. Start a new instance

Once you are on the AWS Ec2 dashboard, click on the Instances option in the provided left-hand menu, then click on “Start Instances” button.

This AMI is also eligible to run on the AWS free tier, so just click the “Select” button to get started.

After that, continue reading.

4. Choose the Ec2 instance type

In this step, we will select the hardware resources we want to assign to our Rocky Linux instance. You can go for the free trial to start and later scale the feature. However, if you want this Linux to start providing commercial services, select the resources – CPU, RAM and other things as per the requirements. Here we go to the Free Trail.

After selecting, click “Review and Launch“.

Hardware type: -Computer -Laptop -Tablet

5. Review the Rocky Linux instance release

We can increase the storage space on our computer by editing its hardware resources. If someone wants to increase the storage space by 10GB, they can click the Edit button, but if they are already satisfied with the default settings, they can click the “Start” button.

Rocky Linux is a Debian-based Linux instance that is used to run the Ubuntu operating system. It has a 2GB memory and a 500GB hard drive.

6. Download an existing key pair or create a new one

To connect the Rocky Linux Ec2 instance created remotely via SSH, we need a key pair. So for that use the existing one or simply select “Create a new key pair” and then give your key some name, for example here we are giving “Rocky”. After that, click on “Download Key Pair” and then on “Launch Instances” button.

To download a SSH keypair, use the following command: ssh-keygen -t rsa

7. Connect to Rocky Linux instance

sudo apt-get update sudo apt-get install python-pip sudo pip install -r requirements.txt

ssh -i “path to downloaded keypair” Rocky @ server-public-ip-address -p 2222

Your downloaded keypair path may not be the same as your real key’s location. ..

SSH client like MobaXterm can be used to ssh into an AWS ec2 Linux instance remotely.

Please share this article if you like it!

Final note