Introduction
This tutorial addresses common challenges faced by Windows users attempting to access AWS EC2 Linux instances. It introduces MobaXterm as a user-friendly alternative to PuTTY and complex virtual machines.
Step 1: Launch a New EC2 Instance
- Open your AWS Management Console and navigate to EC2.
- Click on "Launch Instance" and name it, e.g., "test windows."
- Select the Ubuntu Linux AMI and choose a t2.micro instance type.
- Create a new key pair (using the PEM format) named "WindowsDemo" and download it.
- Verify security group settings to ensure:
- SSH (port 22) access is enabled from anywhere.
- Public IP assignment is enabled.
- Launch the instance.
For a deeper understanding of launching and managing EC2 instances, see Top AWS Services Explained for Beginners: EC2, S3, IAM & More.
Step 2: Download and Install MobaXterm
- Visit the official MobaXterm website and download the Home Edition Installer (recommended for easier setup).
- After download, extract the ZIP file and run the installer executable.
- Follow installation prompts, agreeing to the license, and complete the setup.
- Open MobaXterm from the Windows search bar after installation.
Step 3: Connect to Your EC2 Instance
- Locate the EC2 instance's public IP from the AWS Console.
- Open MobaXterm and start a new SSH session:
- Enter the EC2 public IP as the "Remote host."
- Set the username to "ubuntu" for Ubuntu instances.
- Under advanced SSH settings, enable "Use private key" and select the downloaded PEM file.
- Initiate the connection and accept the security prompt.
- Upon successful connection, you will have terminal access to your EC2 instance.
Verification and Next Steps
- Test connectivity with commands like
sudo apt update. - Use this setup to manage your EC2 Linux instances conveniently from Windows.
For an extensive overview of cloud computing concepts that encompass AWS and services like S3, check Understanding Cloud Computing: A Comprehensive Guide to AWS and S3.
Conclusion
Using MobaXterm simplifies SSH access for Windows users by eliminating the need for PuTTY or additional virtual machines. This streamlined process enables quick and secure connection to AWS EC2 instances, ideal for beginners and professionals alike.
Upcoming Topics
Stay tuned for the next video covering AWS CloudWatch essentials on Day 16 of the AWS 020 series. If you’re interested in expanding your skills further, consider exploring our Comprehensive AWS and Azure Cloud Computing Course Summary and Key Projects.
hello everyone my name is Abhishek and welcome back to my channel today ideally has to be day 16 of AWS 020 series but
many of our friends who are following this series and learning AWS are finding it difficult to log into the ec2
instances from their Windows machines I've seen many comments saying that they are using the AWS terminal because they
are not able to access the ec2 instances from their machines and people have issues with putty they don't know how to
access the ec2 instances from their Windows machine so I am doing this video to explain for all of our Windows users
how to access the ec2 instances from your laptop so you don't need to install any Oracle virtualbox or something for
this one you can simply follow this video and connect to the ec2 instances in next 5 minutes
so firstly I'll start with right from the basics and this is a laptop that I have borrowed I haven't used Windows
laptop for almost six years so I got this laptop from someone else and I don't have any setup of mine in this
laptop so I'm just recording this screen and I'll show you right from the basics there is nothing installed in this
laptop as of now so firstly click on the launch instance and provide any name let's say
test windows and what I'll do is uh let me select Ubuntu will connect to a Linux machine
here let's use T2 micro and let me create the key value pair okay so create key value pair provide the name let's
say as Windows demo right so let's call this as Windows Down
perfect and I'm not changing any settings here I am using the dot pem file itself
because if you are using putty you have to go with this option but in this demo I am going to use MOBA extern I am going
to show you how to use it through mobile extreme which is a even better software than putty but if you want to use putty
then you have to click on this option and use the dot PPK file but my recommendation would be to use mobile
external so dot Pam and create key value pair so now this key value pair will also be downloaded on your laptop right
so it got downloaded in the download folder we'll go back to that now just check all your network settings
are fine you can click on the edit button and see if the public IP is enabled or not then everything looks
fine SSH is enabled right from anywhere perfect let's scroll down and click on
the launch instance now this instance will get launched meanwhile let me show you what you need
to do from your end so you need to take a different Tab and search for download MOBA external right
so just download mobile stuff click on this button and you will see two options once you
click on download mobile external you will find a Community Edition and professional Edition go for the home
edition or the Community Edition click on the download now button and after that what you will do is you will
have two options mobile extreme free home Edition portable one and installer one better to go with installer one
because it makes your life much easier so again I clicked on this home installer and it is getting installed I
click two times sorry for that okay so let me cancel one and I have the other one that is installed already
perfect so it is installed on my laptop locally now what I need to do is I need to switch to the downloads folder Okay
so click on the downloads folder when I am using this after a long long
time right so now this is the place where my mobile external got installed or
downloaded so what actually happens is it gets installed as a zip file so if you see here this is a ZIP file that got
installed you can just click on the right arrow and click on extract all once you click on extract all you will
get a folder like this mobile extern installer the latest version go into that one do not go into the zip file but
go into the extracted folder now double click on this one and a installer gets opened
preparing to install click on the next button agree to all the conditions click on the
next button perfect install
now this will install all of your uh you know mobile extreme related things perfect click on the Finish button
now the mobile extern is installed you can go to the search bar and search for MOBA external perfect and open this one
now you are almost done what you need to do now is just take the ec2 instance that you have created
this should be the easy to instance that I have created where was it perfect go to the instance get the IP address
this is the IP address right so copy the IP address to the mobile stuff so here go to the
sessions right you have this option SSH telnet rsh just go with SSH and provide the
host name here that is the IP address what do you what should be your username your username should be Ubuntu
perfect click on the advanced shell settings and here click on use private key
and now select the private key that you have downloaded right so how do you do that just go to the downloads folder and
you will see windows demo.pem open that okay now I have downloaded the sorry I have added the windows uh Pam click on
the OK button and that should be it it will just ask a pop-up for accept accept it and now your
mobile extern will be able to authenticate to the ec2 instance if you see here now I am inside the ec2
instance already this is my ec2 instance you can try out bunch of commands to verify uh you can just say sudo
app update done perfect so this is your mobile extern and I have connected to the ec2 instance
so uh this is basically how you will access ec2 instance I hope
I hope you enjoyed today's video and see you all in the next one I made this video very specifically for our friends
who are using Windows machines so yeah that's all see you in the next video day 16 where we will cover about
the AWS Cloud watch
To launch a new Ubuntu EC2 instance, log in to your AWS Management Console, navigate to EC2, and click 'Launch Instance.' Name your instance, select the Ubuntu Linux AMI, choose a t2.micro instance type, create a new key pair in PEM format, ensure your security group allows SSH (port 22) access from anywhere, and confirm that a public IP is assigned. Finally, launch the instance to make it ready for SSH connections.
First, download the MobaXterm Home Edition Installer from the official website. Extract the downloaded ZIP file and run the installer executable. Follow the installation prompts, agreeing to the license terms, and complete the setup. After installation, open MobaXterm from the Windows search bar to prepare it for connecting to your EC2 instance.
In MobaXterm, start a new SSH session and enter your EC2 instance's public IP address in the 'Remote host' field. Set the username to 'ubuntu' for Ubuntu instances. Under advanced SSH settings, enable 'Use private key,' and select your downloaded PEM key file. Initiate the connection, accept the security prompt, and you should gain terminal access to your EC2 instance.
MobaXterm offers a more user-friendly interface and integrates terminal, SSH client, and X11 server in one tool, simplifying the connection process. Unlike PuTTY, it natively supports PEM key files without conversion, eliminating extra steps. Compared to using virtual machines, MobaXterm is lightweight and quicker to set up, making it ideal for beginners and professionals managing AWS EC2 instances from Windows.
Your EC2 instance's security group must have an inbound rule that permits SSH traffic on port 22. This rule should allow connections from your trusted IP addresses, or from anywhere (0.0.0.0/0) if you prefer unrestricted access for testing, though this is less secure. Additionally, ensure the instance is assigned a public IP so it is reachable over the internet.
Once connected to your instance, you can verify SSH access by running commands like sudo apt update to check for package updates. Successful command execution and receiving output without errors confirm that the SSH session is active and you have appropriate permissions on the EC2 instance.
After accessing your EC2 instance, you can start managing it by installing software, configuring services, or deploying applications. It's recommended to secure your instance by updating packages, setting up firewalls, and managing user permissions. Explore AWS management tools and monitor your instance's performance as part of ongoing cloud infrastructure management.
Heads up!
This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.
Generate a summary for freeRelated Summaries
Top AWS Services Explained for Beginners: EC2, S3, IAM & More
Discover the most frequently used AWS services in this beginner-friendly overview. Learn how to navigate AWS, manage users with IAM, launch virtual servers with EC2, store data using S3, and handle containers with ECS and EKS. This video also covers essential services like CloudWatch, CloudTrail, RDS, and messaging with SQS and SNS.
Advanced Virtual Machines Creation and Automation in AWS & Azure
Explore advanced concepts of virtual machines (VMs) creation using top cloud platforms AWS and Microsoft Azure. This comprehensive guide covers manual VM setup, automation techniques using CLI, APIs, CloudFormation, CDK, and the role of hybrid cloud and Terraform for cross-cloud infrastructure management.
Understanding Cloud Computing: A Comprehensive Guide to AWS and S3
This video provides an in-depth exploration of cloud computing, focusing on AWS services, including EC2, S3, and the importance of cloud architecture. It covers practical examples, deployment models, and the significance of cloud roles and policies for effective management.
How to Dual Boot Multiple Windows OS Without Partitioning
Learn a simple method to install and switch between multiple Windows operating systems on a single PC without partitioning or virtualization. This guide covers creating virtual hard disks, installing additional Windows OS versions, managing boot options, and resizing virtual disks for flexible multi-boot setups.
Comprehensive AWS and Azure Cloud Computing Course Summary and Key Projects
Explore an extensive cloud computing course covering AWS and Azure platforms, services, security, and architecture. Learn through practical projects and interview preparations to build a strong foundation and advance your cloud career.
Most Viewed Summaries
A Comprehensive Guide to Using Stable Diffusion Forge UI
Explore the Stable Diffusion Forge UI, customizable settings, models, and more to enhance your image generation experience.
Kolonyalismo at Imperyalismo: Ang Kasaysayan ng Pagsakop sa Pilipinas
Tuklasin ang kasaysayan ng kolonyalismo at imperyalismo sa Pilipinas sa pamamagitan ni Ferdinand Magellan.
Mastering Inpainting with Stable Diffusion: Fix Mistakes and Enhance Your Images
Learn to fix mistakes and enhance images with Stable Diffusion's inpainting features effectively.
Pamamaraan at Patakarang Kolonyal ng mga Espanyol sa Pilipinas
Tuklasin ang mga pamamaraan at patakaran ng mga Espanyol sa Pilipinas, at ang epekto nito sa mga Pilipino.
How to Install and Configure Forge: A New Stable Diffusion Web UI
Learn to install and configure the new Forge web UI for Stable Diffusion, with tips on models and settings.

