How to connect an EC2 instance from Windows

Namdev PratapNamdev Pratap
2 min read

Accessing an EC2 Instance from Your Windows Computer

Today, we’ll walk through the process of connecting to your EC2 instance from a Windows computer. If you haven’t yet created an EC2 instance, refer to this step-by-step guide before proceeding. Once your EC2 instance is set up, follow these instructions to connect to it using MobaXterm and SSH.

1. Gather Required Information

To connect to your EC2 instance, you’ll need the following:

  • The IP address of your EC2 instance.

  • The key pair you downloaded when setting up the instance.

2. Download and Install MobaXterm

If you haven’t installed MobaXterm yet, click here to download it. Follow the installation instructions provided.

3. Launch MobaXterm

Once MobaXterm is installed, open the application.

4. Start a New Session

In MobaXterm, click on the “Session” button to begin the connection process.

From here, follow the on-screen steps to connect to your EC2 instance using the IP address and key pair.
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.