Objective:
I have already made a video, how to create the EC2 instance , please watch it
1: Create Ubuntu Ec2 Instance and edit Security Group and open SSH and RDP protocols
2: Now login to SSH using SSH using the Private key you download the while creating the EC2
3: I have already make a video how to connect to the EC2 machine usng the SSH method please watch that
or simple use thes steps
make sure privatekey.pem file permission should be like 0400[for linux and mac user]
$ sudo chmod 0400 privatekey.pem
or in video just to go Properties of file -- then Select security tab and Advance -- then disable inheritance --add new user--type user computer user name--apply
these steps i have shown in my previous video, please look it , it very easy
=========================
after this just connect usng ssh like this
$ ssh -i "privatekey.pem" ubuntu@[IP of machine EC2]
=====================
now if everything is good you will be presented with the ubuntu session in your local powershell/terminal
In order to connect to Machine Using the RDp, we need to first install the RDP software/package because Linux doesn't have the by default any RDp instance
follow these steps:
$ sudo apt update
$ sudo apt install ubuntu-desktop
Install xrdp to allow RDP connections: RDP software
$ sudo apt install xrdp
Set a password for the ubuntu user:[Remember this password other wise it will create problem if you forgot]
$ sudo passwd ubuntu
now simply if your local system is window , search for RDP software and enter the public IP of machine/EC2
after it will asked for the password
just Enter the password you change in the ubnutu machine
and you will now have Remote desktop display in your local system
Isn't great, this is true example of virtualisation, like same machine operation but isn't in your local machine
now i am not really happy with RDP with free tier this system get hanged\
so start using it by SSH
Hope you like the video
thank you , please subscribe in order to upto date about new video in AWS cloud architect and devops as well as security aspect in this series so see you in next video
Bye
Ещё видео!