How to connect an EC2 instance from Windows

Namdev PratapNamdev Pratap
2 min read

Table of contents

Today let's understand how to access an EC2 instance from your Windows computer, After you create an EC2 instance (if you don't know how to create an EC2 instance please click here for step by step guide and once you are done creating an EC2 instance come back here )

now you will need the IP address of the instance and the key you downloaded when creating the instance to connect to your EC2 instance from MobaXterm using SSH

now open MobaXterm if you have not downloaded MobaXterm click here and download it >> and after you install it Open MobaXterm and follow the steps below

Now Open Mobaxterm and click on Session

Select SSH

Now you will need the Remote host (IP address of your instance )and the .pem file your private key to connect to your instance

how do you get them?
go back to your Instance on AWS click on your instance, and copy the IP address as shown below

Go back to MobaXterm enter the IP address on the Remote host

Give any under the name , and now it is time to upload the private key, you remember when you create an instance you create a new private key, and a .pem file gets downloaded that will be the key/file you will be uploading in place of use the private key and then click on OK

it will ask a pop-up to accept it click on Accept

Perfect now you are connected to your EC2 instance from your windows using MobaXterm

If you come across any errors, please comment on them so we can troubleshoot them together.

0
Subscribe to my newsletter

Read articles from Namdev Pratap directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Namdev Pratap
Namdev Pratap

Come along with me on a public learning journey into AWS Cloud and DevOps, designed specifically for those without a technical background. I'll be documenting each step in straightforward, easy-to-understand language to help others make a smooth transition into DevOps. Together, we'll delve into continuous integration, deployment, and automation, breaking down complex concepts into manageable, actionable insights.