This article includes the steps of creating an Amazon AWS Ubuntu instance, setting up a desktop GUI via PUTTY, and connecting to it via Remote Desktop Connection.
So let’s get started,
We will start by creating an EC2 instance. Go to EC2 Console https://console.aws.amazon.com/ec2/v2/home and Click on Launch instance. Where you will find multiple AMIs, Scroll down and select Ubuntu Server (For testing purpose select Free tier eligible).
Once you select the server, follow further steps, and launch. Make sure while launching download the PEM file as it will need in the future.
Now go to the EC2 dashboard and look for a public IP address and Copy that as we will need for PUTTY configuration, Though you can use Public DNS as well.
We are done with AWS configuration, now open PUTTY and follow a few steps:
Note: In between, if this process asks for some kind of choice, then select the local version installed option.
Now, we need to configure the tunnel on PUTTY to the route of the request.
Open PUTTY again and go to the Connection – > SSH -> Tunnels ->
Once done, now click on the open button and you will see a Command prompt where login Id will be Ubuntu.
Now you can check either we are listening on the same port or not using the following command: netstat -antp
Now we are done with the setup.
Open Remote Desktop Connection
Add localhost:8888 or 127.0.0.1:8888 and Connect
You will be asked for a username and password; So username could be Ubuntu and Password will be added by you while installing the command. And Yeah, there you go, We have successfully logged into the Remote server.