Steps of How to Install Kali Linux on AWS (Amazon Web Services)
1 Kali Linux is freely accessible on the AWS marketplace. we are able to use AWS for an initial year free. Let’s see however we can install Kali Linux on AWS. By clicking during this link we are able to reach the AWS marketplace wherever Kali is found.
In the higher than a screenshot, we are able to see the version of the Kali Linux is 2019.4, the most recent Kali and this doesn’t want any additional value.
To use it we’d like to register on the Amazon net Service platform and want to produce our credit/debit card details for verification. AWS is free for the initial twelve months with restricted options. Let’s register on AWS.
2 After register on AWS, we’d like to navigate to services > EC2, like the following screenshot.
3 Then we tend to click on “Launch Instance”.
Here we’d like to click on Launch Instance
4 After this, we are able to select an Amazon Machine Image (AMI). Here we are able to see lots of operational systems like ubuntu server, Windows Server and plenty of additional.
From the sidebar, we tend to go into the AWS marketplace, then we tend to look for Kali Linux.
Now we tend to choose this, then we tend to click on continue. Then our screen seems like the following screenshot:
5 Here we are able to select our instance sort, meaning we are able to select what proportion hardware w can use like CPU, RAM, storage etc. Here we are able to use get one virtual CPU (2.5 GHz) and one GB RAM.
Kali Linux suggested using two GB RAM however we tend to are employing a free service, therefore, we escort the t2.micro type. Then we tend to click on “Review and Launch”.
6 Here we are able to review our instance. we are able to check the CPU details and different system data. Then we tend to click on “Launch”. Then a replacement popup window comes like the following screenshot:
7 Now we are able to select existing key try or use can produce a replacement key pair. we tend to choose a replacement key try, then we tend to offer any name for our new key try.
8 Then we tend to download this key try from the download choices. we are able to use this key to try to connect our machine through SSH. For currently we tend to click on “Launch Instances”. Then it’ll set up our system in some seconds.
9 Then we tend to scroll down click on “View Instance”. Here we are able to see all the instances we’ve created.
We can see all pieces of information here, like standing, public DNS, public IP etc. we are able to scroll down for additional pieces of information.
10 From the “Actions” menu we are able to manage our instance.
Currently, we tend to are geared up our Kali Linux on AWS is running, we tend to simply copy our public DNS, and that we will access our Kali Linux AWS from the other device over SSH. we’d like the downloaded key try to file and also the public DNS.
First, we tend to use different Linux to attach to the Kali AWS machine. we have got the key try move into our Downloads folder, therefore, we tend to use cd commands to travel downloads folder.
cd Downloads
Then we tend to offer the key try file read-only permission for additional security by applying the following command:
chmod 400 kali-in.pem
Now we tend to connect with our Kali Linux AWS over ssh by victimization following command:
ssh -I kali-in.pem [email protected] 2.compute.amazonaws.com
Here kali-in.pem is our key try file’s name and ec2-user is the default username for everybody, and when @ we tend to paste the traced public DNS and press enter. Then it’ll ask if we wish to continue here we tend to sort “yes” and enter.
Here we tend to are in our Kali Linux’s terminal that put in on Amazon net Services (AWS). we are able to check the discharge data hereby victimization following command:
cat /etc/os-release
In the higher than a screenshot, we are able to see that our Kali Linux is 2019.4, it’s the most recent version.
Now on a Windows computer, we have got the key try move into Desktop. therefore we tend to open electronic communication (CMD) and alter our change our directory to Desktop by victimization following command :
cd Desktop
Now we can connect our Kali Linux AWS machine here from Windows by using the following command:
ssh -i kali-in.pem ec2-user@OUR-PUBLIC_DNS
The command is the same here, and we are in our Kali AWS machine. 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 command:
ssh -i kali-in.pem ec2-user@{publicDNS}
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 the following command:
msfconsole
The Metasploit console will load very soon. Here it doesn’t use our system’s resources, in this way we can install Kali Linux in the cloud and access it at the same time from any other devices with using our hardware resources. The main advantage is cloud install, installing Kali Linux on the cloud makes it ultra-portable. This has lots of benefits and this can be very useful to every penetration testers or cybersecurity experts. (Source: hackming)
Enjoy!