Kali Linux in the Cloud for FREE (aws)

 


I know your favourite hacking OS is Kali Linux, but do you know the best way to run it ?

So The best way to run Kali Linux  is to run it  on Cloud, WHY ?

Because It's free, Not for 1, 2, or 3 months but it is free for 12 months means for 1 Year and since it is on cloud you can access it from any of your machine whether it is Windows, Mac, Linux, android, or iphone.

So In this article, I will walk you through every single step to setup Kali Linux in the cloud, not only CLI but also GUI


Setup Kali Linux in AWS

So first you need to create a free AWS account on https://aws.amazon.com/free

After you created your account, just login,
Then,
 scroll down and click on Launch a virtual machine,

Then search for Kali Linux and select it ,

Then scroll down and change instant type to t2.micro and make sure you see free tier eligible badge

Then create a new key pair or you can use an existing if you have, give any name to it and click on create,  and it will automatically downloaded, just keep it safe, otherwise you will loss access to your machine

Now scroll down and configure your storage,

Above you will see a message that you can use upto 30GB of storage in free tier, so change it to 30,

and thats it, just click on Launch instance.

After that it will give you a link, just click on it

And once you see instance state running, just copy your ip address, and open your terminal
and go to the directory where you save your key pair, and execute following to connect to your machine


ssh -i <specify your keypair> kali@<and paste the ip address you copied>


Once you enter,
It will ask you to accept the finger print, just accept it, and thats it we are running kali linux in the cloud,

But we don't have GUI, So lets install it.





Installing GUI

Now First update your repositories,


sudo apt update


Now execute following,


sudo apt install kali-desktop-xfce


and wait till it is finished,

Now install vncserver


sudo apt install tightvncserver


Once it is installed, just start VNC,


vncserver -geometry 1280x720


At first it will ask you to create password, just create it,

Then open a new tab and go to directory where you stored your keypair.
and execute following,


ssh -L 5901:localhost:5901 -N -f kali@<yourmachoneipaddress>  -i <specify the kaypair>


This will create a secure tunnel to your local machine.

Now open your vnc viewer and and connect to localhost:1

It will show you a warning, just ignore it, and click on continue, then enter your password,
And now you will be able to access GUI.

Now if you want to connect with your phone, then you can use Termux,

First install openssh


pkg update ; pkg install openssh


After this commands are same as we did before






Post a Comment (0)
Previous Post Next Post