Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 2: To Connect to the instance from Linux client Operating System

                        Lab 2: To Connect to the instance from Linux client Operating System

To connect to the instance from linux client we have two types clients.
Git bash and putty
  • Refer below link to download gitbash in windows
  • https://gir-scm.com/download/win


Download putty from putty.org


https://www.chairk.greenend.org.uk/~sgtatham/putty/latest.html
From the above link download putty.exe and puttygen.exe



To connect to the ec2 instance in gitbashwe need a pem file.
Copy the pem file from downloads to ec2user

(Note: We already downloaded pemfile while creating the instance .Use that pemfile for connecting to the ec2user)

Go to gitbash copy the pem file 
#scp -i <pemfile><pemfile>ec2-user@<ipaddress>:/home/ec2-user
(Give downloaded pemfile and ipaddress of the instance

you can find the ip address in the instance





B)Connecting through putty
click on puttygen.exe
click on Run



Click on the load button



To change pem file to ppk give your downloaded pem file and open



Then click on Save Private key



Now save the pem file into .ppk file
And close the putty key generation window.

Now to connect to instance from windows operating system open putty.exe
and click on Run button


Now enter your instance IP address and port number



Now expand connection and select ssh and auth


Now give the  path .ppkfile near browser and click on open


Now login screen will open
You can login with ec2-user and enter

Reference: https://www.youtube.com/watch?v=DHy9 cuC3pc


Comments

Popular posts from this blog

Lab 21:Installing docker in instance and build an image

Lab 22:Pushing a docker image to docker hub

Lab 5: Installing Nginx in EC2 instance