Kenneth G. Hartman bio photo

Kenneth G. Hartman

Security Consultant,  
Forensic Analyst & 
Certified SANS Instructor

Email Twitter GitHub

Ever want to visit a website but don’t trust it enough to use your personal/work computer? What you need is a temporary system that is totally isolated from anything sensitive. Why not use a cloud-based virtual machine, such as offered by Amazon Web Services Elastic Compute Cloud?

Here is how to do it, assuming you have an AWS Account. (If you don’t have an account, it is easy to create one, just browse to and select “Create an AWS Account.”)

Launch an Amazon Linux 2 EC2 Instance and SSH to it, then run:

sudo yum update -y
sudo amazon-linux-extras install mate-desktop1.x
sudo yum install -y ./google-chrome-stable_current_*.rpm

Once the necessary software is installed, you need to connect to it with a client that supports X11-forwarding. I am a fan of MobaXterm and the following settings will allow you to connect and run Chrome:

Image of MobaXterm Configuration

After you connect, you should see Chrome listed in the Applications menu:

Chrome on EC2 Instance Desktop

There you go, easy peasy. Of course you can install any other browser of graphical software as well.

NOTE: If you need to RDP to the instance instead of using an X-windows client, launch an Ubuntu EC2 instance and run this script as root.