How To Install Rocky Linux on Amazon AWS EC2

Rocky Linux is an open-source Linux operating system compatible with Red Hat Enterprise Linux. It is a replacement of the CentOS operating system after the discontinuation of centOS support by RedHat.

Installing Rocky Linux on Amazon EC2 is super easy!

Step 1: Log in to AWS and go to EC2 Dashboard and from the top right corner, you can change the region where you want to install the OS as shown in the pic below.

Step 2: Create a New Instance: Now click on the “instance’s” option from the left menu and click on the “launce instances” on the right top corner.

Step 3: Click on AWS marketplace and on the search bar, type “Rocky Linux” and hit enter, select the first official option from the list.

Step 4: From the available list of instances, select the free tier eligible and click on the “review and launch” option as shown in the image below.

Step 5: Final review, by default, you will be assigned 10 GB storage for the software/OS installation. Click on the “launch” button.

Step 6: It will ask you to select existing or create a new key pair. Select “create a new key pair”, enter any name and click on the “download key pair” button, save it. Finally, click on the “launch instances” button.

How Connect to Rocky Linux Intances?

Open your local system command terminal or prompt and use the following command syntax:

ssh -i "path-to-downloaded-keypair" rocky@server-public-ip-address

Replace path-to-downloaded-keypair with the path where your actual key is located.

Note: “rocky” is the default username, not ec2-user or root because the image is not provided by Amazon itself. However, in the future, it would be.

You Might Also Like

More Similar Posts


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