HOW TO CONNECT TO EC2 INSTANCE FROM WINDOWS LAPTOP | MOBAXTERM | #aws #devops #abhishekveeramalla

Abhishek.Veeramalla
19 Jul 202307:39

Summary

TLDRIn this tutorial, Abhishek addresses the common issue of Windows users struggling to log into AWS EC2 instances. He demonstrates step-by-step how to access EC2 instances using MobaXterm, an alternative to PuTTY, which he recommends for its ease of use. The video guides viewers from launching an instance to setting up MobaXterm, including downloading and using the correct private key. By the end, Abhishek successfully connects to an EC2 instance, showcasing the process for Windows users to follow.

Takeaways

  • πŸ˜€ The video is part of the AWS 020 series, addressing difficulties faced by Windows users in logging into EC2 instances.
  • πŸ”’ Many viewers are using the AWS terminal or facing issues with PuTTY, a common SSH client, to access EC2 instances from their Windows machines.
  • πŸ’» The presenter, Abhishek, demonstrates the process on a borrowed Windows laptop that has no prior setup.
  • πŸš€ The video starts by launching an EC2 instance, with a focus on creating a key pair for SSH access, using the .pem file format.
  • πŸ› οΈ The presenter recommends using MobaXterm, an alternative to PuTTY, for a better user experience.
  • πŸ“₯ The key pair for the EC2 instance is downloaded to the laptop's download folder.
  • 🌐 The video ensures that network settings, including public IP and SSH access, are correctly configured.
  • πŸ”„ After launching the EC2 instance, the presenter guides viewers to download and install MobaXterm from the official website.
  • πŸ”‘ The installation of MobaXterm involves extracting the ZIP file and running the installer, agreeing to the terms, and completing the setup.
  • πŸ” Once MobaXterm is installed, the presenter shows how to connect to the EC2 instance using the downloaded .pem key and the instance's IP address.
  • πŸ“ The video concludes with a successful connection to the EC2 instance, demonstrating the use of commands within the instance's environment.

Q & A

  • What is the main purpose of the video?

    -The main purpose of the video is to guide Windows users on how to access AWS EC2 instances from their laptops without needing to install Oracle VirtualBox or other similar software.

  • Why are some users finding it difficult to log into EC2 instances from their Windows machines?

    -Some users are finding it difficult because they are not familiar with the process of accessing EC2 instances using tools like AWS terminal or PuTTY, which is why the video provides a step-by-step guide.

  • What is the name of the software recommended in the video for accessing EC2 instances?

    -The video recommends using MobaXterm, which is suggested to be a better software than PuTTY for accessing EC2 instances.

  • What type of instance is being launched in the video?

    -An Ubuntu instance is being launched in the video for demonstration purposes.

  • What is the recommended edition of MobaXterm for users to download?

    -The video recommends downloading the Community Edition of MobaXterm, specifically the Home Edition installer.

  • How does the video ensure that the network settings are correct for launching an instance?

    -The video suggests checking the network settings by clicking on the 'Edit' button and ensuring that the public IP is enabled and SSH is allowed from anywhere.

  • What is the username that should be used when connecting to the EC2 instance via MobaXterm?

    -The username that should be used is 'Ubuntu' when connecting to the EC2 instance.

  • How is the private key used in the video to connect to the EC2 instance?

    -The private key, which is a .pem file in this case, is selected in MobaXterm's advanced shell settings under 'Use private key' to authenticate and connect to the EC2 instance.

  • What is the significance of the '.pem' file in accessing the EC2 instance?

    -The '.pem' file is a private key file that is necessary for authentication when connecting to an EC2 instance securely.

  • What command is used in the video to verify the successful connection to the EC2 instance?

    -The 'sudo apt update' command is used in the video to verify that the connection to the EC2 instance is successful and that the user has the necessary permissions.

  • What is the next topic that the video series will cover after this one?

    -The next topic in the video series will be about AWS CloudWatch.

Outlines

00:00

πŸ”’ Accessing EC2 Instances from Windows with MobaXterm

In this segment, Abhishek addresses the common issue faced by Windows users in logging into Amazon EC2 instances. He introduces a tutorial on how to use MobaXterm, an alternative to PuTTY, for a smoother connection process. Starting with a fresh Windows laptop, he demonstrates the process of launching an EC2 instance, selecting an instance type, and creating a key pair. He emphasizes the use of a .pem file for MobaXterm and contrasts it with the .PPK file required for PuTTY. Abhishek guides viewers through downloading and installing MobaXterm, extracting the installer from a ZIP file, and launching the application. The tutorial is aimed at beginners, ensuring that even those unfamiliar with Windows can follow along.

05:06

πŸ–₯️ Connecting to EC2 Instances Using MobaXterm

This paragraph continues the tutorial by showing how to connect to an EC2 instance using MobaXterm after it has been installed. Abhishek instructs viewers to find the IP address of the created EC2 instance and use it as the hostname in MobaXterm. He details the steps to configure the session with the correct username, which is 'Ubuntu' for the instance, and to use the downloaded private key file (.pem) for authentication. The video script includes a walkthrough of the MobaXterm interface, showing how to navigate to the sessions tab, input the necessary details, and establish a connection to the EC2 instance. Abhishek concludes by verifying the connection with a command prompt within the EC2 instance, demonstrating a successful login and highlighting the ease of using MobaXterm for Windows users.

Mindmap

Keywords

πŸ’‘AWS

AWS, or Amazon Web Services, is a comprehensive and widely adopted cloud platform provided by Amazon. It offers over 200 fully featured services from data centers globally. In the video, AWS is the main platform discussed, with a focus on EC2 instances, which are part of the AWS service offering. The script mentions AWS multiple times, indicating its central role in the tutorial.

πŸ’‘EC2

EC2, or Amazon Elastic Compute Cloud, is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. The video script discusses difficulties users face in logging into EC2 instances from Windows machines, which is the primary issue the tutorial aims to address.

πŸ’‘Windows Machine

A Windows machine refers to a computer that operates on the Windows operating system. In the context of the script, the video is targeted at users who are trying to access EC2 instances from their Windows-based laptops or PCs. The tutorial specifically addresses the common issues these users face.

πŸ’‘SSH

SSH stands for Secure Shell, a cryptographic network protocol for operating network services securely over an unsecured network. In the script, SSH is mentioned as a method for securely connecting to the EC2 instances, which is a critical step in the process.

πŸ’‘PuTTY

PuTTY is an open-source terminal emulator, serial console, and network file transfer application. It supports several network protocols, including SSH for secure remote login. The script mentions issues users have with PuTTY, suggesting it as one of the tools users have tried to access EC2 instances but faced difficulties with.

πŸ’‘MOBAXterm

MOBAXterm is a software package that provides an SSH client, terminal emulator, X11 forwarding, and more. The script recommends MOBAXterm as a better alternative to PuTTY for accessing EC2 instances. It is highlighted as the tool used in the demonstration to connect to an EC2 instance.

πŸ’‘Key Pair

In the context of AWS EC2, a key pair consists of a public key and a private key. The public key is associated with an EC2 instance, while the private key is kept securely by the user to authenticate access to the instance. The script details the process of creating and using a key pair for secure access.

πŸ’‘.pem File

A .pem file is a type of file that contains encoded data. In the script, it refers to the private key file in the PEM format, which is used for authentication when connecting to an EC2 instance via SSH. The tutorial explains how to use this file with MOBAXterm.

πŸ’‘Ubuntu

Ubuntu is a popular open-source operating system based on the Linux kernel. In the script, the presenter selects Ubuntu as the operating system for the EC2 instance they are demonstrating. This choice is part of the setup process for the tutorial.

πŸ’‘T2 Micro

T2 Micro is an instance type provided by AWS EC2, which is a small, general purpose instance suitable for small to medium workloads. The script mentions selecting T2 Micro as the instance type during the EC2 instance creation process.

πŸ’‘AWS CloudWatch

AWS CloudWatch is a monitoring service for AWS resources and the applications users run on AWS. It provides data and actionable insights to monitor applications, respond to system-wide performance changes, optimize resource utilization, and get a unified view of AWS application and system operation. The script mentions that the next video will cover AWS CloudWatch, indicating a continuation of the tutorial series.

Highlights

Introduction to the video series on AWS 020, addressing difficulties in logging into EC2 instances from Windows machines.

Common issues with AWS Terminal and PuTTY for accessing EC2 instances on Windows are discussed.

The video aims to guide Windows users on how to access EC2 instances without additional software like Oracle VirtualBox.

The presenter has not used a Windows laptop for six years and is demonstrating from a fresh setup.

Step-by-step guide begins with launching an instance and naming it 'test windows'.

Selection of Ubuntu as the operating system for the EC2 instance.

Explanation of choosing the T2 micro instance type and creating a key value pair named 'Windows demo'.

Recommendation to use MOBAXterm over PuTTY for a better experience.

Instructions on downloading MOBAXterm Community Edition for Windows users.

Preference for the installer version of MOBAXterm for ease of use.

Demonstration of installing MOBAXterm on a Windows laptop.

How to locate and use the downloaded '.pem' key file for EC2 instance access.

Connecting to the EC2 instance using MOBAXterm with the provided IP address and private key.

Verification of successful connection to the EC2 instance with command execution examples.

Conclusion of the tutorial with a preview of the next video on AWS CloudWatch.

The video is specifically tailored for Windows users having trouble with EC2 access.

Transcripts

play00:02

hello everyone my name is Abhishek and

play00:04

welcome back to my channel today ideally

play00:07

has to be day 16 of AWS 020 series but

play00:11

many of our friends who are following

play00:13

this series and learning AWS are finding

play00:16

it difficult to log into the ec2

play00:18

instances from their Windows machines

play00:21

I've seen many comments saying that they

play00:23

are using the AWS terminal because they

play00:26

are not able to access the ec2 instances

play00:28

from their machines and people have

play00:30

issues with putty they don't know how to

play00:32

access the ec2 instances from their

play00:34

Windows machine so I am doing this video

play00:37

to explain for all of our Windows users

play00:40

how to access the ec2 instances from

play00:44

your laptop so you don't need to install

play00:47

any Oracle virtualbox or something for

play00:49

this one you can simply follow this

play00:51

video and connect to the ec2 instances

play00:54

in next 5 minutes

play00:55

so firstly I'll start with right from

play00:58

the basics and this is a laptop that I

play01:01

have borrowed I haven't used Windows

play01:03

laptop for almost six years so I got

play01:06

this laptop from someone else and I

play01:08

don't have any setup of mine in this

play01:10

laptop so I'm just recording this screen

play01:12

and I'll show you right from the basics

play01:16

there is nothing installed in this

play01:17

laptop as of now so firstly click on the

play01:20

launch instance

play01:23

and provide any name let's say

play01:26

test windows

play01:29

and what I'll do is uh let me select

play01:33

Ubuntu will connect to a Linux machine

play01:36

here let's use T2 micro and let me

play01:39

create the key value pair okay so create

play01:43

key value pair provide the name let's

play01:45

say as

play01:48

Windows demo

play01:50

right so let's call this as Windows Down

play01:55

perfect and I'm not changing any

play01:58

settings here

play01:59

I am using the dot pem file itself

play02:01

because if you are using putty you have

play02:04

to go with this option but in this demo

play02:06

I am going to use MOBA extern I am going

play02:09

to show you how to use it through mobile

play02:11

extreme which is a even better software

play02:13

than putty but if you want to use putty

play02:15

then you have to click on this option

play02:18

and use the dot PPK file but my

play02:21

recommendation would be to use mobile

play02:22

external so dot Pam and create key value

play02:25

pair so now this key value pair will

play02:28

also be downloaded on your laptop right

play02:30

so it got downloaded in the download

play02:32

folder we'll go back to that

play02:34

now just check all your network settings

play02:37

are fine you can click on the edit

play02:39

button and see if the public IP is

play02:41

enabled or not then everything looks

play02:44

fine

play02:45

SSH is enabled right from anywhere

play02:49

perfect let's scroll down and click on

play02:52

the launch instance

play02:55

now this instance will get launched

play02:57

meanwhile let me show you what you need

play02:59

to do from your end

play03:01

so you need to take a different Tab and

play03:04

search for download MOBA external right

play03:07

so just download mobile stuff

play03:12

click on this button

play03:13

and you will see two options once you

play03:16

click on download mobile external you

play03:18

will find a Community Edition and

play03:20

professional Edition go for the home

play03:22

edition or the Community Edition click

play03:24

on the download now button and after

play03:26

that what you will do is you will

play03:29

have two options mobile extreme free

play03:32

home Edition portable one and installer

play03:34

one better to go with installer one

play03:36

because it makes your life much easier

play03:38

so again I clicked on this home

play03:41

installer and it is getting installed I

play03:44

click two times sorry for that okay so

play03:47

let me cancel one and I have the other

play03:50

one that is installed already

play03:52

perfect so it is installed on my laptop

play03:54

locally now what I need to do is I need

play03:57

to switch to the downloads folder Okay

play04:00

so

play04:02

click on the downloads folder

play04:05

when I am using this after a long long

play04:07

time

play04:08

right so now this is the place where my

play04:12

mobile external got installed or

play04:14

downloaded so what actually happens is

play04:17

it gets installed as a zip file so if

play04:20

you see here this is a ZIP file that got

play04:22

installed you can just click on the

play04:24

right arrow and click on extract all

play04:26

once you click on extract all you will

play04:28

get a folder like this mobile extern

play04:30

installer the latest version go into

play04:33

that one do not go into the zip file but

play04:36

go into the extracted folder now double

play04:38

click on this one and a installer gets

play04:41

opened

play04:42

preparing to install

play04:44

click on the next button

play04:46

agree to all the conditions click on the

play04:49

next button

play04:50

perfect

play04:52

install

play04:54

now this will install all of your uh you

play04:59

know mobile extreme related things

play05:06

perfect click on the Finish button

play05:08

now the mobile extern is installed you

play05:11

can go to the search bar and search for

play05:13

MOBA external perfect and open this one

play05:17

now you are almost done what you need to

play05:20

do now is just take the ec2 instance

play05:24

that you have created

play05:26

this should be the easy to instance that

play05:28

I have created where was it perfect

play05:31

go to the instance get the IP address

play05:38

this is the IP address right so copy the

play05:41

IP address

play05:44

to the mobile stuff so here go to the

play05:48

sessions

play05:51

right you have this option SSH telnet

play05:54

rsh just go with SSH and provide the

play05:58

host name here that is the IP address

play06:00

what do you what should be your username

play06:02

your username should be Ubuntu

play06:06

perfect click on the advanced shell

play06:09

settings and here click on use private

play06:12

key

play06:12

and now select the private key that you

play06:15

have downloaded right so how do you do

play06:18

that just go to the downloads folder and

play06:21

you will see windows demo.pem open that

play06:26

okay now I have downloaded the sorry I

play06:30

have added the windows uh Pam click on

play06:33

the OK button

play06:36

and that should be it it will just ask a

play06:39

pop-up for accept accept it and now your

play06:43

mobile extern will be able to

play06:44

authenticate to the ec2 instance if you

play06:46

see here now I am inside the ec2

play06:49

instance already this is my ec2 instance

play06:53

you can try out bunch of commands to

play06:55

verify uh you can just say sudo

play07:01

app update done perfect so this is your

play07:07

mobile extern and I have connected to

play07:09

the ec2 instance

play07:12

so uh this is basically how you will

play07:16

access

play07:17

ec2 instance I hope

play07:20

I hope you enjoyed today's video and see

play07:23

you all in the next one I made this

play07:25

video very specifically for our friends

play07:27

who are using Windows machines

play07:30

so yeah that's all see you in the next

play07:32

video day 16 where we will cover about

play07:34

the AWS Cloud watch

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
AWS EC2Windows AccessMobaXtermSSH ConnectionUbuntu ServerCloud ComputingTutorial VideoTech GuideVirtualBox AlternativePuTTY Replacement