This blog is NOT OFFICIAL website of Kali Linux. We just share Tutorials to learn Cybersecurity.

Installing Kali Linux on AWS (Amazon Web Services) | Install Kali Linux on Cloud

In today's tutorial we are going to learn how we can install Kali Linux on AWS (Amazon Web Services). After installing Kali Linux's latest version 2019.4 in AWS we can easily use it in Windows, Android, Mac, or any other Linux distributions. Previously we have learned how we can install Kali on Windows, Raspberry Pi, Android even in a Pen drive.

Today we are going to install Kali Linux on cloud. Installing on cloud have many benefits like we can use it on any other device and we can save our disk space and hardware resources.

Installing Kali Linux on AWS (Amazon Web Services), Install Kali Linux on Cloud

Kali Linux is freely available on AWS marketplace. We can use AWS for first year free. Let's see how we can install Kali Linux on AWS. By clicking in this link we can reach the AWS marketplace where Kali is located.

kali linux in AWS

In the above screenshot we can see the version of Kali Linux is 2019.4, the latest Kali and this doesn't need any extra cost. To use it we need to register on Amazon Web Service platform and need to provide our credit/debit card details for verification. AWS is free for first 12 months with limited features. Let's register on AWS.

After register on AWS we need to navigate to services > EC2, like following screenshot

AWS Services and EC2

Then we click on "Launch Instance".

Launch Instance on AWS
Here we need to click on Launch Instance

After this we can choose an Amazon Machine Image (AMI). Here we can see lot's of operating systems like ubuntu server, Windows Server and many more.
From the sidebar, we move into AWS marketplace, then we search for Kali Linux.

Kali Linux on AWS

Now we select this, then we click on continue. Then our screen looks like following screenshot:

instance type

Here we can choose our instance type, that means we can choose how much hardware w can use like CPU, RAM, storage etc. Here we can use get 1 virtual CPU (2.5 GHz) and 1 GB RAM. Kali Linux recommended to use 2 GB RAM but we are using a free service so we go with the t2.micro type. Then we click on "Review and Launch".

Here we can review our instance. We can check the CPU details and other system information. Then we click on "Launch". Then a new popup window comes like following screenshot:

creating key pair

Now we can choose existing key pair or use can create a new key pair. We select a new key pair, then we give any name for our new key pair.

Then we download this key pair from the download options. We can use this key pair too connect our machine through SSH. For now we click on "Launch Instances". Then it will configure our system in some seconds.


Then we scroll down click on "View Instance". Here we can see all the instance we have created.

We can see the all informations here, like status, public DNS, public IP etc. We can scroll down for more informations.

Actions in AWS

From the "Actions" menu we can manage our instance.

 Now we are all set our Kali Linux on AWS is running, we just copy our public DNS, and we can access our Kali Linux AWS from any other device over SSH. We need the downloaded key pair file and the public DNS.

First we use other Linux system to connect with Kali AWS machine . We have the key pair file in our Downloads folder so we use cd commands to go downloads folder.

cd Downloads
 Then we give the key pair file read-only permission for extra security by applying following command:

chmod 400 kali-in.pem

Now we connect with our Kali Linux AWS over ssh by using following command:

ssh -i kali-in.pem
Here kali-in.pem is our key pair file's name and ec2-user is default username for everyone, and after @ we paste the copied public DNS and press enter. Then it will asks if we want to continue here we type "yes" and enter.

Kali Linux on AWS

Here we are in our Kali Linux's terminal which installed on Amazon Web Services (AWS). We can check the release information here by using following command:

cat /etc/os-release

Kali Linux AWS Release

In the above screenshot we can see that our Kali Linux is 2019.4, its the latest version.

Now on a Windows PC we have the key pair file in Desktop. So we open command prompt (CMD) and change our change our directory to Desktop by using following command :

cd Desktop

Now we can connect our Kali Linux AWS machine here from Windows by using following command:

ssh -i kali-in.pem ec2-user@OUR-PUBLIC_DNS

The command is same here, and we are in our Kali AWS machine.

Kali AWS Cloud on Windows CMD
Kali AWS Cloud on Windows CMD

We also can connect it from our Android devices we need Termux app we change our directory where our key pair file is located. In our case it is located in /sdcard/Download. So we move to that location using cd command

cd /sdcard/Download
Then we use the same same command:

ssh -i kali-in.pem ec2-user@{publicDNS}

kali linux on android

We can see the Kali Linux terminal here also we can use any Kali Linux tool or command here, like we need to open Metasploit, so we type following command:


Metasploit console will load very soon.

Metasploit in Android
Metasploit in Android

Here it doesn't use our system's resources, in this way we can install Kali Linux in cloud and access it on same time from any other devices with using our hardware resources. Main advantage is cloud install, installing Kali Linux on cloud makes it ultra portable. This have lots of benefits and this can be very useful to every penetration testers or cyber security experts. So share our tutorial on social media.

Here we have installed the command line interface of Kali Linux we can even install Kali Linux's Graphical Interface on AWS. We have a detailed tutorial about this Click to read.

Enjoyed our tutorials, then follow us on blogger by clicking on follow us button, and follow us on Twitter also for regular updates.