Booting Up Kali Linux GUI in AWS
Booting Up Kali Linux GUI in AWS
Satyajit Dash
ACCENTURE SECURITY
Booting up Kali Linux GUI in AWS Page |1
1. Search “aws console login” in Google and click on the highlighted URL
4. Submit MFA if you have enabled Multi Factor Authentication for additional security
10. Choose an Instance Type (Family: General purpose, Type: t2.micro) & click Next
14. Add at least “SSH, All ICMP – IPv4 & HTTP” rules and select “Anywhere” from dropdown item in
“Source” field. Click on “Review and Launch”
16. Select “Create a new key pair” from dropdown and name it. Click “Download Key Pair”
17. Key Pair with “.pem” file extension will be downloaded and click “Launch Instances”
20. Copy “IPv4 Public IP” value & try to ping in command prompt to satisfy added “ICMP - IPv4” rule
21. Open “PuTTY Key Generator” software & load Key Pair with “.pem” file extension
22. Click “Save private key” & click Yes. Private key with “.ppk” file extension will be saved
23. Open “PuTTY Configuration” software and specify kali machine IP address
24. Click “Auth” under “SSH” in left pane & load Private key with “.ppk” file extension for
authentication. Click Open
26. Login as “ec2-user” and you will successfully be logged-in to kali linux machine satisfying added
“SSH” rule
28. Start apache service by “service apache2 start” command check the status by “service apache2
status” command
29. Go to “/var/www/html/” directory by “cd /var/www/html/” command & list the files by “ls -l”
command
30. Copy “Public DNS (IPv4)” value & try to hit it in web browser to satisfy added “HTML” rule
33. Install VNC server in to kali by using “sudo apt-get install xfce4 xfce4-goodies tightvncserver”
command & type “Y” when it prompts to continue
34. Install GUI in kali linux machine by “apt-get install gnome-core kali-defaults kali-root-login
desktop-base” command & type “Y” when it prompts to continue.
36. Start VNC server in kali machine using “vncserver” command & submit a password when it
prompts, which will be used when VNC client authenticate to server
37. Type “n” when it prompts for view-only password & VNC server is started @port : 5901
38. Cross check whether VNC server has been started @port : 5901 by “netstat -anop | grep 590”
command
39. Save the current kali linux session by right click on putty session & then clicking “Change
Settings…”
40. Type “kali linux” & click on “save” button. Hit Apply
41. To do local port forwarding with SSH & get secure VNC, open putty, select “kali linux” and load it
(Do not open the SSH session)
42. Automatically IP address as well as Private key file for authentication will be loaded in Putty
43. Click on Connection->SSH->Tunnels. Under Source port, type a port that you want to use on
your local window computer. Under Destination, type “localhost:5901” (change 5901
accordingly to your VNC server port)
45. Open TightVNC client (to be installed first in client machine). Type “localhost:4444” & click
Connect