How To Install Rocky Linux on Amazon AWS EC2

Rocky Linux is the successor of one of the most popular operating systems CentOS whose long-term support has been terminated by RedHat.

In this article, we will guide you on how to install Rocky Linux on Amazon AWS EC2 step by step with pictures.

1. Create And Login To AWS Account

First, create your AWS account if you have not created it yet and log in using the created credential. The dashboard should be more or less like this.

2. Launch New EC2 Instance

Search for “EC2” in the search bar and click on EC2 as shown below.

Now click on instances and before launching a new instance.

On next window, select the region/location where you want to install the new instance (in this cases, Ohio selected) and click on launch button.

3. Select Rocky Linux From Amazon AMI

Now select AWS Marketplace from the left menu and search for rocky linux in the search bar, finally select the highlighted Amazon machine image i.e. Rocky Linux 8 (Official) from the list.

4. Choose Instance Type From The List

Select the instance as per your requirement from the list. Each instance have configuration such as RAM, storage, vCPU, etc. In this case, we have selected “Free Tier eligible” instance. Once you have selected, click on the “Review and Launch”.

5. Review Instance Launch

Review the instance before launching. By default, 10GB storage will be assigned, you can increase as per your requirement from the “edit instance detail” section.

6. Download an Existing or Create New Key Pair And Launch

You need a key pair to connect remotely such as using SSH client. Create a new key-pair, select key pair type, give some name and finally, click on “Download Key Pair” button.

Save this key pair file somewhere safe. You need it to connect to SSH client.

Review launched instance here 🡇.

7. Connect to Rocky Linux Instance

From the instance dashboard, click on connect and you should be able to see your public DNS and how to connect using SSH. Now open your system terminal or command prompt and use the following syntax to connect.

ssh -i "keypair-file-with-full-path" rocky@server-public-ip-address

NOTE: rocky is the default user name and replace “keypair-file-with-full-path” with your actual key path as “

Connect Using Putty

Step 1: First download and install putty from the official website.

Step 2: Open PuTTYgen application and load the private key (.pem file) from the saved location, click on “save private key” button and save somewhere.

Step 3: Now open PuTTY application (not PuTTYgen) and fill the public hostname/IP address, username (rocky) and load the generated private key as shown in the picture below.

Step 4: Hurray! After successfully login, you should be able to see the following message!

You Might Also Like

More Similar Posts


Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x